static extern bool GetDevicePowerState(IntPtr hDevice, out bool pfOn);
bool result = GetDevicePowerState(hFile, out fOn);