ReactOS 0.4.15-dev-7889-g76290a6
pofuncs.h
Go to the documentation of this file.
1/*++ NDK Version: 0098
2
3Copyright (c) Alex Ionescu. All rights reserved.
4
5Header Name:
6
7 pofuncs.h
8
9Abstract:
10
11 Function definitions for the Power Subsystem.
12
13Author:
14
15 Alex Ionescu (alexi@tinykrnl.org) - Updated - 27-Feb-2006
16
17--*/
18
19#ifndef _POFUNCS_H
20#define _POFUNCS_H
21#ifndef _PO_DDK_
22
23//
24// Dependencies
25//
26#include <umtypes.h>
27
28//
29// Native Calls
30//
35 _In_ POWER_ACTION SystemAction,
39);
40
45 _In_ POWER_INFORMATION_LEVEL PowerInformationLevel,
50);
51
56 _In_ POWER_ACTION SystemAction,
59);
60
67);
68
73 _In_ LATENCY_TIME latency
74);
75
80
85 _In_ EXECUTION_STATE esFlags,
87);
88
93 _In_ POWER_ACTION SystemAction,
97);
98
101NTAPI
104);
105
108NTAPI
111);
112#endif
113
116NTAPI
118 _In_ POWER_ACTION SystemAction,
122);
123
127NTAPI
128ZwPowerInformation(
129 _In_ POWER_INFORMATION_LEVEL InformationLevel,
134);
135
138NTAPI
140 _In_ POWER_ACTION SystemAction,
143);
144#endif
unsigned char BOOLEAN
LONG NTSTATUS
Definition: precomp.h:26
#define NTSYSAPI
Definition: ntoskrnl.h:12
#define _IRQL_requires_max_(irql)
Definition: driverspecs.h:230
#define PASSIVE_LEVEL
Definition: env_spec_w32.h:693
#define _Out_
Definition: ms_sal.h:345
#define _In_
Definition: ms_sal.h:308
#define _In_reads_bytes_opt_(size)
Definition: ms_sal.h:322
#define _Out_bytecap_(size)
Definition: ms_sal.h:854
#define _Out_writes_bytes_opt_(size)
Definition: ms_sal.h:351
#define _In_bytecount_(size)
Definition: ms_sal.h:812
NTSYSCALLAPI NTSTATUS NTAPI NtPowerInformation(_In_ POWER_INFORMATION_LEVEL PowerInformationLevel, _In_bytecount_(InputBufferLength) PVOID InputBuffer, _In_ ULONG InputBufferLength, _Out_bytecap_(OutputBufferLength) PVOID OutputBuffer, _In_ ULONG OutputBufferLength)
NTSYSCALLAPI NTSTATUS NTAPI NtInitiatePowerAction(_In_ POWER_ACTION SystemAction, _In_ SYSTEM_POWER_STATE MinSystemState, _In_ ULONG Flags, _In_ BOOLEAN Asynchronous)
NTSYSCALLAPI NTSTATUS NTAPI NtRequestDeviceWakeup(_In_ HANDLE Device)
NTSYSCALLAPI NTSTATUS NTAPI NtCancelDeviceWakeupRequest(_In_ HANDLE Device)
NTSYSCALLAPI NTSTATUS NTAPI NtSetSystemPowerState(_In_ POWER_ACTION SystemAction, _In_ SYSTEM_POWER_STATE MinSystemState, _In_ ULONG Flags)
NTSYSCALLAPI NTSTATUS NTAPI NtGetDevicePowerState(_In_ HANDLE Device, _In_ PDEVICE_POWER_STATE PowerState)
NTSYSAPI NTSTATUS NTAPI ZwInitiatePowerAction(_In_ POWER_ACTION SystemAction, _In_ SYSTEM_POWER_STATE MinSystemState, _In_ ULONG Flags, _In_ BOOLEAN Asynchronous)
NTSYSCALLAPI NTSTATUS NTAPI NtSetThreadExecutionState(_In_ EXECUTION_STATE esFlags, _Out_ EXECUTION_STATE *PreviousFlags)
NTSYSCALLAPI NTSTATUS NTAPI NtRequestWakeupLatency(_In_ LATENCY_TIME latency)
NTSYSCALLAPI NTSTATUS NTAPI ZwSetSystemPowerState(_In_ POWER_ACTION SystemAction, _In_ SYSTEM_POWER_STATE MinSystemState, _In_ ULONG Flags)
NTSYSCALLAPI BOOLEAN NTAPI NtIsSystemResumeAutomatic(VOID)
Definition: power.c:934
#define NTSYSCALLAPI
Definition: ntbasedef.h:204
_In_ SYSTEM_POWER_STATE MinSystemState
Definition: ntpoapi.h:303
_In_ SYSTEM_POWER_STATE _In_ ULONG _In_ BOOLEAN Asynchronous
Definition: ntpoapi.h:305
_Out_ EXECUTION_STATE * PreviousFlags
Definition: ntpoapi.h:288
POWER_ACTION
Definition: ntpoapi.h:122
enum _DEVICE_POWER_STATE * PDEVICE_POWER_STATE
enum _POWER_INFORMATION_LEVEL POWER_INFORMATION_LEVEL
enum _SYSTEM_POWER_STATE SYSTEM_POWER_STATE
#define NTAPI
Definition: typedefs.h:36
uint32_t ULONG
Definition: typedefs.h:59
_Must_inspect_result_ _In_ WDFDEVICE Device
Definition: wdfchildlist.h:474
_Must_inspect_result_ _In_ PWDFDEVICE_INIT _In_ WDF_DEVICE_POWER_STATE PowerState
Definition: wdfdevice.h:3034
_In_ WDFREQUEST _In_ size_t OutputBufferLength
Definition: wdfio.h:320
_In_ WDFREQUEST _In_ size_t _In_ size_t InputBufferLength
Definition: wdfio.h:322
_Must_inspect_result_ _In_ WDFIOTARGET _In_opt_ WDFREQUEST _In_opt_ PWDF_MEMORY_DESCRIPTOR OutputBuffer
Definition: wdfiotarget.h:863
_Must_inspect_result_ _In_ WDFIOTARGET _In_opt_ WDFREQUEST _In_opt_ PWDF_MEMORY_DESCRIPTOR InputBuffer
Definition: wdfiotarget.h:953
_Must_inspect_result_ _In_ ULONG Flags
Definition: wsk.h:170
LATENCY_TIME
Definition: potypes.h:215
ULONG EXECUTION_STATE
Definition: potypes.h:213