Process Hacker
ntpoapi.h File Reference

Go to the source code of this file.

Data Structures

union  _POWER_STATE
 
struct  _SYSTEM_POWER_STATE_CONTEXT
 
struct  _POWER_STATE_HANDLER
 
struct  _POWER_STATE_NOTIFY_HANDLER
 
struct  _PROCESSOR_POWER_INFORMATION
 
struct  _SYSTEM_POWER_INFORMATION
 

Typedefs

typedef union _POWER_STATE POWER_STATE
 
typedef union _POWER_STATEPPOWER_STATE
 
typedef enum _POWER_STATE_TYPE POWER_STATE_TYPE
 
typedef enum _POWER_STATE_TYPEPPOWER_STATE_TYPE
 
typedef struct
_SYSTEM_POWER_STATE_CONTEXT 
SYSTEM_POWER_STATE_CONTEXT
 
typedef struct
_SYSTEM_POWER_STATE_CONTEXT
PSYSTEM_POWER_STATE_CONTEXT
 
typedef enum
POWER_STATE_HANDLER_TYPE
PPOWER_STATE_HANDLER_TYPE
 
typedef NTSTATUS(NTAPI * PENTER_STATE_SYSTEM_HANDLER )(_In_ PVOID SystemContext)
 
typedef NTSTATUS(NTAPI * PENTER_STATE_HANDLER )(_In_ PVOID Context, _In_opt_ PENTER_STATE_SYSTEM_HANDLER SystemHandler, _In_ PVOID SystemContext, _In_ LONG NumberProcessors, _In_ volatile PLONG Number)
 
typedef struct _POWER_STATE_HANDLER POWER_STATE_HANDLER
 
typedef struct
_POWER_STATE_HANDLER
PPOWER_STATE_HANDLER
 
typedef NTSTATUS(NTAPI * PENTER_STATE_NOTIFY_HANDLER )(_In_ POWER_STATE_HANDLER_TYPE State, _In_ PVOID Context, _In_ BOOLEAN Entering)
 
typedef struct
_POWER_STATE_NOTIFY_HANDLER 
POWER_STATE_NOTIFY_HANDLER
 
typedef struct
_POWER_STATE_NOTIFY_HANDLER
PPOWER_STATE_NOTIFY_HANDLER
 
typedef struct
_PROCESSOR_POWER_INFORMATION 
PROCESSOR_POWER_INFORMATION
 
typedef struct
_PROCESSOR_POWER_INFORMATION
PPROCESSOR_POWER_INFORMATION
 
typedef struct
_SYSTEM_POWER_INFORMATION 
SYSTEM_POWER_INFORMATION
 
typedef struct
_SYSTEM_POWER_INFORMATION
PSYSTEM_POWER_INFORMATION
 

Enumerations

enum  _POWER_STATE_TYPE { SystemPowerState = 0, DevicePowerState }
 
enum  POWER_STATE_HANDLER_TYPE {
  PowerStateSleeping1 = 0, PowerStateSleeping2 = 1, PowerStateSleeping3 = 2, PowerStateSleeping4 = 3,
  PowerStateSleeping4Firmware = 4, PowerStateShutdownReset = 5, PowerStateShutdownOff = 6, PowerStateMaximum = 7
}
 

Functions

NTSYSCALLAPI NTSTATUS NTAPI NtPowerInformation (_In_ POWER_INFORMATION_LEVEL InformationLevel, _In_reads_bytes_opt_(InputBufferLength) PVOID InputBuffer, _In_ ULONG InputBufferLength, _Out_writes_bytes_opt_(OutputBufferLength) PVOID OutputBuffer, _In_ ULONG OutputBufferLength)
 
NTSYSCALLAPI NTSTATUS NTAPI NtSetThreadExecutionState (_In_ EXECUTION_STATE NewFlags, _Out_ EXECUTION_STATE *PreviousFlags)
 
NTSYSCALLAPI NTSTATUS NTAPI NtRequestWakeupLatency (_In_ LATENCY_TIME latency)
 
NTSYSCALLAPI NTSTATUS NTAPI NtInitiatePowerAction (_In_ POWER_ACTION SystemAction, _In_ SYSTEM_POWER_STATE LightestSystemState, _In_ ULONG Flags, _In_ BOOLEAN Asynchronous)
 
NTSYSCALLAPI NTSTATUS NTAPI NtSetSystemPowerState (_In_ POWER_ACTION SystemAction, _In_ SYSTEM_POWER_STATE LightestSystemState, _In_ ULONG Flags)
 
NTSYSCALLAPI NTSTATUS NTAPI NtGetDevicePowerState (_In_ HANDLE Device, _Out_ PDEVICE_POWER_STATE State)
 
NTSYSCALLAPI BOOLEAN NTAPI NtIsSystemResumeAutomatic (VOID)
 

Typedef Documentation

typedef NTSTATUS(NTAPI * PENTER_STATE_HANDLER)(_In_ PVOID Context, _In_opt_ PENTER_STATE_SYSTEM_HANDLER SystemHandler, _In_ PVOID SystemContext, _In_ LONG NumberProcessors, _In_ volatile PLONG Number)

Definition at line 75 of file ntpoapi.h.

typedef NTSTATUS(NTAPI * PENTER_STATE_NOTIFY_HANDLER)(_In_ POWER_STATE_HANDLER_TYPE State, _In_ PVOID Context, _In_ BOOLEAN Entering)

Definition at line 92 of file ntpoapi.h.

typedef NTSTATUS(NTAPI * PENTER_STATE_SYSTEM_HANDLER)(_In_ PVOID SystemContext)

Definition at line 71 of file ntpoapi.h.

typedef union _POWER_STATE POWER_STATE
typedef union _POWER_STATE * PPOWER_STATE

Enumeration Type Documentation

Enumerator:
SystemPowerState 
DevicePowerState 

Definition at line 10 of file ntpoapi.h.

Enumerator:
PowerStateSleeping1 
PowerStateSleeping2 
PowerStateSleeping3 
PowerStateSleeping4 
PowerStateSleeping4Firmware 
PowerStateShutdownReset 
PowerStateShutdownOff 
PowerStateMaximum 

Definition at line 59 of file ntpoapi.h.

Function Documentation

NTSYSCALLAPI NTSTATUS NTAPI NtGetDevicePowerState ( _In_ HANDLE  Device,
_Out_ PDEVICE_POWER_STATE  State 
)
NTSYSCALLAPI NTSTATUS NTAPI NtInitiatePowerAction ( _In_ POWER_ACTION  SystemAction,
_In_ SYSTEM_POWER_STATE  LightestSystemState,
_In_ ULONG  Flags,
_In_ BOOLEAN  Asynchronous 
)
NTSYSCALLAPI BOOLEAN NTAPI NtIsSystemResumeAutomatic ( VOID  )
NTSYSCALLAPI NTSTATUS NTAPI NtPowerInformation ( _In_ POWER_INFORMATION_LEVEL  InformationLevel,
_In_reads_bytes_opt_(InputBufferLength) PVOID  InputBuffer,
_In_ ULONG  InputBufferLength,
_Out_writes_bytes_opt_(OutputBufferLength) PVOID  OutputBuffer,
_In_ ULONG  OutputBufferLength 
)
NTSYSCALLAPI NTSTATUS NTAPI NtRequestWakeupLatency ( _In_ LATENCY_TIME  latency)
NTSYSCALLAPI NTSTATUS NTAPI NtSetSystemPowerState ( _In_ POWER_ACTION  SystemAction,
_In_ SYSTEM_POWER_STATE  LightestSystemState,
_In_ ULONG  Flags 
)
NTSYSCALLAPI NTSTATUS NTAPI NtSetThreadExecutionState ( _In_ EXECUTION_STATE  NewFlags,
_Out_ EXECUTION_STATE *  PreviousFlags 
)