NTSYSAPI
NTSTATUS
NTAPI
NtGetDevicePowerState(
  IN  HANDLE Device,
  OUT DEVICE_POWER_STATE *State
  );

Routine Description:

    Queries the current power state of a device.

Arguments:

    Device - Supplies the handle to a device.

    State - Returns the current power state of the device.

Return Value:

    NTSTATUS