_VPOWERD_Set_System_Power_State

POWERRET _VPOWERD_Set_System_Power_State(POWER_STATE Power_State, 
    DWORD Request_Type);
 

Sets system power state to low- or no-power state. If a low-power state is set, this service returns successfully after power is restored. If a no-power state, this service never returns and the system loses all power.

Power_State
Power state for the device. Can be one of these values:
PSTATE_STANDBY (0x0001) Standby
PSTATE_SUSPEND (0x0002) Suspended
PSTATE_OFF (0x0003) Off

All other values are reserved.

Request_Type
Type of request. Can be one of these values:
REQTYPE_USER_INITIATED (0x00000000) Request is User-initiated.
REQTYPE_TIMER_INITIATED (0x00000001) Request is Timer-initiated.
REQTYPE_FORCED_REQUEST (0x00000002) Force acceptance of request.
REQTYPE_BIOS_CRITICAL_SUSPEND (0x00000004) Request is BIOS Critical Suspend.

Windows 95 does not support the APM 1.1 OEM-defined system states.