Example #1
0
 public static extern int GetDevicePower(
     string pvDevice,
     PowerDeviceFlags dwDeviceFlags,
     ref CEDevicePowerState DeviceState);
Example #2
0
 public static extern IntPtr SetPowerRequirement(
     String pvDevice, CEDevicePowerState DeviceState, PowerDeviceFlags DeviceFlags, IntPtr pvSystemState, int StateFlags);
Example #3
0
 public static extern int SetSystemPowerState(string psState, PowerState StateFlags, PowerDeviceFlags Options); //POWER_FORCE
Example #4
0
 public static extern int GetDevicePower(
     string pvDevice,
     PowerDeviceFlags dwDeviceFlags,
     ref CEDevicePowerState DeviceState);
Example #5
0
 public static extern IntPtr SetPowerRequirement(
     String pvDevice, CEDevicePowerState DeviceState, PowerDeviceFlags DeviceFlags, IntPtr pvSystemState, int StateFlags);
Example #6
0
 public static extern int SetSystemPowerState(string psState, PowerState StateFlags, PowerDeviceFlags Options); //POWER_FORCE