ReactOS  0.4.14-dev-114-gc8cbd56
pofuncs.h
Go to the documentation of this file.
2 /******************************************************************************
3  * Power Management Support Functions *
4  ******************************************************************************/
5 
6 #define PoSetDeviceBusy(IdlePointer) ((void)(*(IdlePointer) = 0))
7 
8 #if (NTDDI_VERSION >= NTDDI_WIN2K)
9 
13 NTAPI
16  _Inout_ __drv_aliasesMem struct _IRP *Irp);
17 
20 PULONG
21 NTAPI
27 
30 PVOID
31 NTAPI
33  _Inout_opt_ PVOID StateHandle,
35 
39 NTAPI
46  _Outptr_opt_ struct _IRP **Irp);
47 
51 NTAPI
56 
59 VOID
60 NTAPI
63 
66 VOID
67 NTAPI
69  _Inout_ struct _IRP *Irp);
70 
73 VOID
74 NTAPI
76  _Inout_ PVOID StateHandle);
77 
80 NTAPI
82  OUT PVOID *Event);
83 
84 #endif /* (NTDDI_VERSION >= NTDDI_WIN2K) */
86 
87 $if (_NTIFS_)
88 #if (NTDDI_VERSION >= NTDDI_WINXP)
92 NTAPI
95 #endif
97 $if (_WDMDDK_)
98 #if (NTDDI_VERSION >= NTDDI_VISTA)
99 
102 VOID
103 NTAPI
104 PoSetSystemWake(
105  _Inout_ struct _IRP *Irp);
106 
109 BOOLEAN
110 NTAPI
111 PoGetSystemWake(
112  _In_ struct _IRP *Irp);
113 
116 NTSTATUS
117 NTAPI
118 PoRegisterPowerSettingCallback(
124 
127 NTSTATUS
128 NTAPI
129 PoUnregisterPowerSettingCallback(
131 
132 #endif /* (NTDDI_VERSION >= NTDDI_VISTA) */
133 
134 #if (NTDDI_VERSION >= NTDDI_VISTASP1)
136 VOID
137 NTAPI
139  _Inout_ PULONG IdlePointer);
140 #endif /* (NTDDI_VERSION >= NTDDI_VISTASP1) */
141 
142 #if (NTDDI_VERSION >= NTDDI_WIN7)
143 
145 VOID
146 NTAPI
148  _Inout_ PULONG IdlePointer);
149 
151 VOID
152 NTAPI
154  _Inout_ PULONG IdlePointer);
155 
158 BOOLEAN
159 NTAPI
160 PoQueryWatchdogTime(
163 
166 VOID
167 NTAPI
168 PoDeletePowerRequest(
169  _Inout_ PVOID PowerRequest);
170 
173 NTSTATUS
174 NTAPI
175 PoSetPowerRequest(
176  _Inout_ PVOID PowerRequest,
178 
181 NTSTATUS
182 NTAPI
183 PoClearPowerRequest(
184  _Inout_ PVOID PowerRequest,
186 
189 NTSTATUS
190 NTAPI
191 PoCreatePowerRequest(
192  _Outptr_ PVOID *PowerRequest,
195 
196 #endif /* (NTDDI_VERSION >= NTDDI_WIN7) */
197 
enum _POWER_STATE_TYPE POWER_STATE_TYPE
_In_ UCHAR _In_ POWER_STATE PowerState
Definition: pofuncs.h:42
_In_ PDEVICE_OBJECT Pdo
Definition: classpnp.h:301
Type
Definition: Type.h:6
enum _POWER_REQUEST_TYPE POWER_REQUEST_TYPE
REQUEST_POWER_COMPLETE * PREQUEST_POWER_COMPLETE
Definition: potypes.h:404
NTKERNELAPI VOID NTAPI PoSetDeviceBusyEx(_Inout_ PULONG IdlePointer)
NTSTATUS NTAPI PoCallDriver(IN PDEVICE_OBJECT DeviceObject, IN OUT PIRP Irp)
Definition: power.c:485
_In_ PIRP Irp
Definition: csq.h:116
_In_ ULONG ConservationIdleTime
Definition: pofuncs.h:24
PULONG NTAPI PoRegisterDeviceForIdleDetection(IN PDEVICE_OBJECT DeviceObject, IN ULONG ConservationIdleTime, IN ULONG PerformanceIdleTime, IN DEVICE_POWER_STATE State)
Definition: power.c:502
LONG NTSTATUS
Definition: precomp.h:26
_In_ LPCGUID _In_ PPOWER_SETTING_CALLBACK Callback
Definition: pofuncs.h:120
#define _NTIFS_
Definition: ifssupp.h:20
#define _Outptr_
Definition: no_sal2.h:396
#define _WDMDDK_
Definition: wdm.template.h:26
_IRQL_requires_max_(PASSIVE_LEVEL) NTSYSAPI NTSTATUS NTAPI ZwPowerInformation(_In_ POWER_INFORMATION_LEVEL InformationLevel
Definition: Messaging.c:64
VOID NTAPI PoUnregisterSystemState(IN PVOID StateHandle)
Definition: power.c:636
#define _In_opt_
Definition: no_sal2.h:213
VOID NTAPI PoSetSystemState(IN EXECUTION_STATE Flags)
Definition: power.c:616
_Must_inspect_result_ _In_ ULONG Flags
Definition: wsk.h:170
POWER_SETTING_CALLBACK * PPOWER_SETTING_CALLBACK
Definition: potypes.h:414
NTSTATUS(* NTAPI)(IN PFILE_FULL_EA_INFORMATION EaBuffer, IN ULONG EaLength, OUT PULONG ErrorOffset)
Definition: IoEaTest.cpp:117
#define __drv_aliasesMem
Definition: btrfs_drv.h:183
unsigned char BOOLEAN
#define _Out_
Definition: no_sal2.h:323
#define NTKERNELAPI
_In_ LPCGUID SettingGuid
Definition: pofuncs.h:120
enum _DEVICE_POWER_STATE DEVICE_POWER_STATE
_In_ HANDLE Handle
Definition: extypes.h:390
#define _Inout_
Definition: no_sal2.h:244
_Out_ PULONG SecondsRemaining
Definition: pofuncs.h:162
unsigned char UCHAR
Definition: xmlstorage.h:181
ULONG EXECUTION_STATE
Definition: potypes.h:169
_In_ UCHAR _In_ POWER_STATE _In_opt_ PREQUEST_POWER_COMPLETE CompletionFunction
Definition: pofuncs.h:42
NTKERNELAPI VOID NTAPI PoEndDeviceBusy(_Inout_ PULONG IdlePointer)
#define _Outptr_opt_
Definition: no_sal2.h:397
_In_ UCHAR MinorFunction
Definition: pofuncs.h:42
NTKERNELAPI VOID NTAPI PoStartDeviceBusy(_Inout_ PULONG IdlePointer)
#define DISPATCH_LEVEL
Definition: env_spec_w32.h:696
#define _In_
Definition: no_sal2.h:204
NTKERNELAPI NTSTATUS NTAPI PoRequestShutdownEvent(OUT PVOID *Event)
Definition: poshtdwn.c:396
VOID NTAPI PoStartNextPowerIrp(IN PIRP Irp)
Definition: power.c:626
_In_ ULONG _In_ ULONG PerformanceIdleTime
Definition: pofuncs.h:24
unsigned int * PULONG
Definition: retypes.h:1
_In_ PDEVICE_OBJECT DeviceObject
Definition: pofuncs.h:193
#define OUT
Definition: typedefs.h:39
unsigned int ULONG
Definition: retypes.h:1
POWER_STATE NTAPI PoSetPowerState(IN PDEVICE_OBJECT DeviceObject, IN POWER_STATE_TYPE Type, IN POWER_STATE State)
Definition: power.c:597
$endif(_WDMDDK_) $if(_NTIFS_) _IRQL_requires_max_(APC_LEVEL) NTKERNELAPI NTSTATUS NTAPI PoQueueShutdownWorkItem(_Inout_ __drv_aliasesMem PWORK_QUEUE_ITEM WorkItem)
Definition: ke.h:202
NTSTATUS NTAPI PoRequestPowerIrp(IN PDEVICE_OBJECT DeviceObject, IN UCHAR MinorFunction, IN POWER_STATE PowerState, IN PREQUEST_POWER_COMPLETE CompletionFunction, IN PVOID Context, OUT PIRP *pIrp OPTIONAL)
Definition: power.c:528
NTSTATUS NTAPI PoQueueShutdownWorkItem(_In_ PWORK_QUEUE_ITEM WorkItem)
Definition: poshtdwn.c:364
$if(_WDMDDK_) _IRQL_requires_max_(DISPATCH_LEVEL) NTKERNELAPI NTSTATUS NTAPI PoCallDriver(_In_ struct _DEVICE_OBJECT *DeviceObject
Definition: ke.h:1
PVOID NTAPI PoRegisterSystemState(IN PVOID StateHandle, IN EXECUTION_STATE Flags)
Definition: power.c:516
#define APC_LEVEL
Definition: env_spec_w32.h:695
#define _Inout_opt_
Definition: no_sal2.h:258