[DllImport("coredll.dll", SetLastError=true)]
private static extern int SetDevicePower(
string pvDevice,
int dwDeviceFlags,
DevicePowerState DeviceState);
Declare Function SetDevicePower Lib "coredll.dll" (TODO) As TODO
public enum DevicePowerState : int
{
Unspecified = -1,
D0 = 0, // Full On: full power, full functionality
D1, // Low Power On: fully functional at low power/performance
D2, // Standby: partially powered with automatic wake
D3, // Sleep: partially powered with device initiated wake
D4, // Off: unpowered
}
private const int POWER_NAME = 0x00000001;
None.
Please add some!
SetDevicePower("BKL1:", POWER_NAME, DevicePowerState.D4);
Do you know one? Please contribute it!