#ifndef _NTPOAPI_H
/**
* Initiates a power action of the current system.
*
* @param SystemAction The system power action.
* @param LightestSystemState The lightest system power state.
* @param Flags Flags for the power action.
* @param Asynchronous Whether the action is asynchronous.
* @return Successful or errant status.
*/
NTSYSCALLAPI
NTSTATUS
NTAPI
NtInitiatePowerAction(
_In_ POWER_ACTION SystemAction,
_In_ SYSTEM_POWER_STATE LightestSystemState,
_In_ ULONG Flags, // POWER_ACTION_* flags
_In_ BOOLEAN Asynchronous
);
View code on GitHub
#ifndef _NTZWAPI_H
NTSYSCALLAPI
NTSTATUS
NTAPI
ZwInitiatePowerAction(
_In_ POWER_ACTION SystemAction,
_In_ SYSTEM_POWER_STATE LightestSystemState,
_In_ ULONG Flags, // POWER_ACTION_* flags
_In_ BOOLEAN Asynchronous
);
View code on GitHub
No description available.