ReactOS  0.4.14-dev-854-gb9426a3
pofuncs.h
Go to the documentation of this file.
1 /*++ NDK Version: 0098
2 
3 Copyright (c) Alex Ionescu. All rights reserved.
4 
5 Header Name:
6 
7  pofuncs.h
8 
9 Abstract:
10 
11  Function definitions for the Power Subsystem.
12 
13 Author:
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 //
33 NTAPI
35  _In_ POWER_ACTION SystemAction,
39 );
40 
43 NTAPI
45  _In_ POWER_INFORMATION_LEVEL PowerInformationLevel,
50 );
51 
54 NTAPI
56  _In_ POWER_ACTION SystemAction,
59 );
60 
63 NTAPI
67 );
68 
71 NTAPI
73  _In_ LATENCY_TIME latency
74 );
75 
77 BOOLEAN
78 NTAPI
80 
83 NTAPI
85  _In_ EXECUTION_STATE esFlags,
87 );
88 
91 NTAPI
93  _In_ POWER_ACTION SystemAction,
97 );
98 
100 NTSTATUS
101 NTAPI
104 );
105 
107 NTSTATUS
108 NTAPI
111 );
112 #endif
113 
114 NTSYSAPI
115 NTSTATUS
116 NTAPI
118  _In_ POWER_ACTION SystemAction,
120  _In_ ULONG Flags,
122 );
123 
125 NTSYSAPI
126 NTSTATUS
127 NTAPI
128 ZwPowerInformation(
129  _In_ POWER_INFORMATION_LEVEL InformationLevel,
134 );
135 
137 NTSTATUS
138 NTAPI
140  _In_ POWER_ACTION SystemAction,
143 );
144 #endif
_In_ UCHAR _In_ POWER_STATE PowerState
Definition: pofuncs.h:42
_In_ PIRP _In_ PDEVICE_OBJECT Device
Definition: fatprocs.h:2020
LONG NTSTATUS
Definition: precomp.h:26
NTSYSCALLAPI NTSTATUS NTAPI NtSetThreadExecutionState(_In_ EXECUTION_STATE esFlags, _Out_ EXECUTION_STATE *PreviousFlags)
NTSYSCALLAPI NTSTATUS NTAPI NtRequestDeviceWakeup(_In_ HANDLE Device)
#define NTSYSCALLAPI
Definition: ntbasedef.h:204
NTSYSCALLAPI NTSTATUS NTAPI NtSetSystemPowerState(_In_ POWER_ACTION SystemAction, _In_ SYSTEM_POWER_STATE MinSystemState, _In_ ULONG Flags)
_In_ SYSTEM_POWER_STATE MinSystemState
Definition: ntpoapi.h:303
_IRQL_requires_max_(PASSIVE_LEVEL) NTSYSAPI NTSTATUS NTAPI ZwPowerInformation(_In_ POWER_INFORMATION_LEVEL InformationLevel
Definition: Messaging.c:64
#define NTSYSAPI
Definition: ntoskrnl.h:14
_In_ ULONG InputBufferLength
Definition: pofuncs.h:131
enum _SYSTEM_POWER_STATE SYSTEM_POWER_STATE
CHAR InputBuffer[80]
Definition: conmgr.c:33
NTSYSCALLAPI BOOLEAN NTAPI NtIsSystemResumeAutomatic(VOID)
Definition: power.c:796
_Must_inspect_result_ _In_ ULONG Flags
Definition: wsk.h:170
_In_ SYSTEM_POWER_STATE _In_ ULONG _In_ BOOLEAN Asynchronous
Definition: ntpoapi.h:303
NTSTATUS(* NTAPI)(IN PFILE_FULL_EA_INFORMATION EaBuffer, IN ULONG EaLength, OUT PULONG ErrorOffset)
Definition: IoEaTest.cpp:117
NTSYSAPI NTSTATUS NTAPI ZwInitiatePowerAction(_In_ POWER_ACTION SystemAction, _In_ SYSTEM_POWER_STATE MinSystemState, _In_ ULONG Flags, _In_ BOOLEAN Asynchronous)
unsigned char BOOLEAN
#define _Out_
Definition: no_sal2.h:323
_In_ ULONG _Out_writes_bytes_opt_(OutputBufferLength) PVOID OutputBuffer
_Must_inspect_result_ __drv_aliasesMem _In_ PDEVICE_OBJECT _In_opt_ PVOID _In_ ULONG _Out_opt_ PVOID OutputBuffer
Definition: iofuncs.h:713
_Out_ EXECUTION_STATE * PreviousFlags
Definition: ntpoapi.h:288
LATENCY_TIME
Definition: potypes.h:171
_In_ ULONG _In_ ULONG OutputBufferLength
Definition: pofuncs.h:134
enum _DEVICE_POWER_STATE * PDEVICE_POWER_STATE
NTSYSCALLAPI NTSTATUS NTAPI ZwSetSystemPowerState(_In_ POWER_ACTION SystemAction, _In_ SYSTEM_POWER_STATE MinSystemState, _In_ ULONG Flags)
enum _POWER_INFORMATION_LEVEL POWER_INFORMATION_LEVEL
NTSYSCALLAPI NTSTATUS NTAPI NtGetDevicePowerState(_In_ HANDLE Device, _In_ PDEVICE_POWER_STATE PowerState)
ULONG EXECUTION_STATE
Definition: potypes.h:169
POWER_ACTION
Definition: ntpoapi.h:122
#define PASSIVE_LEVEL
Definition: env_spec_w32.h:693
#define _In_
Definition: no_sal2.h:204
#define _Out_bytecap_(size)
Definition: no_sal2.h:325
_In_reads_bytes_opt_(InputBufferLength) PVOID InputBuffer
unsigned int ULONG
Definition: retypes.h:1
_In_ ULONG _In_ ULONG _In_bytecount_(cjIn) PVOID pvIn
Definition: winddi.h:3582
NTSYSCALLAPI NTSTATUS NTAPI NtRequestWakeupLatency(_In_ LATENCY_TIME latency)
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 NtCancelDeviceWakeupRequest(_In_ HANDLE Device)