http://msdn.microsoft.com/en-us/library/windows/hardware/dn529134