3 Copyright (c) Alex Ionescu. All rights reserved.
11 Function definitions for the Power Subsystem.
15 Alex Ionescu (alexi@tinykrnl.org) - Updated - 27-Feb-2006
34 NtInitiatePowerAction(
35 _In_ POWER_ACTION SystemAction
,
36 _In_ SYSTEM_POWER_STATE MinSystemState
,
38 _In_ BOOLEAN Asynchronous
45 _In_ POWER_INFORMATION_LEVEL PowerInformationLevel
,
46 _In_bytecount_(InputBufferLength
) PVOID InputBuffer
,
47 _In_ ULONG InputBufferLength
,
48 _Out_bytecap_(OutputBufferLength
) PVOID OutputBuffer
,
49 _In_ ULONG OutputBufferLength
55 NtSetSystemPowerState(
56 _In_ POWER_ACTION SystemAction
,
57 _In_ SYSTEM_POWER_STATE MinSystemState
,
64 NtGetDevicePowerState(
66 _In_ PDEVICE_POWER_STATE PowerState
72 NtRequestWakeupLatency(
73 _In_ LATENCY_TIME latency
79 NtIsSystemResumeAutomatic(VOID
);
84 NtSetThreadExecutionState(
85 _In_ EXECUTION_STATE esFlags
,
86 _Out_ EXECUTION_STATE
*PreviousFlags
92 NtInitiatePowerAction(
93 _In_ POWER_ACTION SystemAction
,
94 _In_ SYSTEM_POWER_STATE MinSystemState
,
96 _In_ BOOLEAN Asynchronous
102 NtRequestDeviceWakeup(
109 NtCancelDeviceWakeupRequest(
117 ZwInitiatePowerAction(
118 _In_ POWER_ACTION SystemAction
,
119 _In_ SYSTEM_POWER_STATE MinSystemState
,
121 _In_ BOOLEAN Asynchronous
124 _IRQL_requires_max_(PASSIVE_LEVEL
)
129 _In_ POWER_INFORMATION_LEVEL InformationLevel
,
130 _In_reads_bytes_opt_(InputBufferLength
) PVOID InputBuffer
,
131 _In_ ULONG InputBufferLength
,
132 _Out_writes_bytes_opt_(OutputBufferLength
) PVOID OutputBuffer
,
133 _In_ ULONG OutputBufferLength
139 ZwSetSystemPowerState(
140 _In_ POWER_ACTION SystemAction
,
141 _In_ SYSTEM_POWER_STATE MinSystemState
,