ReactOS 0.4.15-dev-5669-g09dde2c
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
14PoCallDriver(
17
27
33 _Inout_opt_ PVOID StateHandle,
35
46 _Outptr_opt_ struct _IRP **Irp);
47
56
59VOID
63
66VOID
69 _Inout_ struct _IRP *Irp);
70
73VOID
76 _Inout_ PVOID StateHandle);
77
82 OUT PVOID *Event);
83
84#endif /* (NTDDI_VERSION >= NTDDI_WIN2K) */
86
88#if (NTDDI_VERSION >= NTDDI_WINXP)
95#endif
98#if (NTDDI_VERSION >= NTDDI_VISTA)
99
102VOID
103NTAPI
104PoSetSystemWake(
105 _Inout_ struct _IRP *Irp);
106
110NTAPI
111PoGetSystemWake(
112 _In_ struct _IRP *Irp);
113
117NTAPI
124
128NTAPI
129PoUnregisterPowerSettingCallback(
131
132#endif /* (NTDDI_VERSION >= NTDDI_VISTA) */
133
134#if (NTDDI_VERSION >= NTDDI_VISTASP1)
136VOID
137NTAPI
139 _Inout_ PULONG IdlePointer);
140#endif /* (NTDDI_VERSION >= NTDDI_VISTASP1) */
141
142#if (NTDDI_VERSION >= NTDDI_WIN7)
143
145VOID
146NTAPI
148 _Inout_ PULONG IdlePointer);
149
151VOID
152NTAPI
154 _Inout_ PULONG IdlePointer);
155
159NTAPI
160PoQueryWatchdogTime(
163
166VOID
167NTAPI
168PoDeletePowerRequest(
169 _Inout_ PVOID PowerRequest);
170
174NTAPI
175PoSetPowerRequest(
176 _Inout_ PVOID PowerRequest,
178
182NTAPI
183PoClearPowerRequest(
184 _Inout_ PVOID PowerRequest,
186
190NTAPI
191PoCreatePowerRequest(
192 _Outptr_ PVOID *PowerRequest,
195
196#endif /* (NTDDI_VERSION >= NTDDI_WIN7) */
197
unsigned char BOOLEAN
Type
Definition: Type.h:7
LONG NTSTATUS
Definition: precomp.h:26
#define __drv_aliasesMem
Definition: btrfs_drv.h:203
_In_ PIRP Irp
Definition: csq.h:116
#define _IRQL_requires_max_(irql)
Definition: driverspecs.h:230
#define APC_LEVEL
Definition: env_spec_w32.h:695
#define DISPATCH_LEVEL
Definition: env_spec_w32.h:696
#define _NTIFS_
Definition: ifssupp.h:20
#define _Inout_
Definition: ms_sal.h:378
#define _Outptr_opt_
Definition: ms_sal.h:429
#define _Outptr_
Definition: ms_sal.h:427
#define _Inout_opt_
Definition: ms_sal.h:379
#define _Out_
Definition: ms_sal.h:345
#define _In_
Definition: ms_sal.h:308
#define _In_opt_
Definition: ms_sal.h:309
PVOID NTAPI PoRegisterSystemState(IN PVOID StateHandle, IN EXECUTION_STATE Flags)
Definition: power.c:635
POWER_STATE NTAPI PoSetPowerState(IN PDEVICE_OBJECT DeviceObject, IN POWER_STATE_TYPE Type, IN POWER_STATE State)
Definition: power.c:717
VOID NTAPI PoStartNextPowerIrp(IN PIRP Irp)
Definition: power.c:746
PULONG NTAPI PoRegisterDeviceForIdleDetection(IN PDEVICE_OBJECT DeviceObject, IN ULONG ConservationIdleTime, IN ULONG PerformanceIdleTime, IN DEVICE_POWER_STATE State)
Definition: power.c:621
VOID NTAPI PoUnregisterSystemState(IN PVOID StateHandle)
Definition: power.c:756
NTSTATUS NTAPI PoRequestPowerIrp(_In_ PDEVICE_OBJECT DeviceObject, _In_ UCHAR MinorFunction, _In_ POWER_STATE PowerState, _In_opt_ PREQUEST_POWER_COMPLETE CompletionFunction, _In_opt_ __drv_aliasesMem PVOID Context, _Outptr_opt_ PIRP *pIrp)
Definition: power.c:647
VOID NTAPI PoSetSystemState(IN EXECUTION_STATE Flags)
Definition: power.c:736
enum _POWER_STATE_TYPE POWER_STATE_TYPE
enum _DEVICE_POWER_STATE DEVICE_POWER_STATE
NTKRNLVISTAAPI NTSTATUS NTAPI PoRegisterPowerSettingCallback(_In_opt_ PDEVICE_OBJECT DeviceObject, _In_ LPCGUID SettingGuid, _In_ PPOWER_SETTING_CALLBACK Callback, _In_opt_ PVOID Context, _Outptr_opt_ PVOID *Handle)
Definition: po.c:14
NTSTATUS NTAPI PoQueueShutdownWorkItem(_In_ PWORK_QUEUE_ITEM WorkItem)
Definition: poshtdwn.c:367
uint32_t * PULONG
Definition: typedefs.h:59
#define NTAPI
Definition: typedefs.h:36
uint32_t ULONG
Definition: typedefs.h:59
#define OUT
Definition: typedefs.h:40
_In_ PDEVICE_OBJECT DeviceObject
Definition: wdfdevice.h:2055
_Must_inspect_result_ _In_ PWDFDEVICE_INIT _In_ WDF_DEVICE_POWER_STATE PowerState
Definition: wdfdevice.h:3034
_In_ UCHAR _In_ UCHAR MinorFunction
Definition: wdfdevice.h:1699
_In_ WDFINTERRUPT _In_ PFN_WDF_INTERRUPT_SYNCHRONIZE Callback
Definition: wdfinterrupt.h:458
WDF_EXTERN_C_START typedef _Must_inspect_result_ _In_ WDFDRIVER _In_opt_ PWDF_OBJECT_ATTRIBUTES _In_ PDEVICE_OBJECT _In_opt_ PDEVICE_OBJECT _In_opt_ PDEVICE_OBJECT Pdo
Definition: wdfminiport.h:72
_Must_inspect_result_ _In_ PWDF_WORKITEM_CONFIG _In_ PWDF_OBJECT_ATTRIBUTES _Out_ WDFWORKITEM * WorkItem
Definition: wdfworkitem.h:115
#define NTKRNLVISTAAPI
#define _WDMDDK_
Definition: wdm.template.h:26
#define NTKERNELAPI
_Must_inspect_result_ _In_ ULONG Flags
Definition: wsk.h:170
_Out_ PULONG SecondsRemaining
Definition: pofuncs.h:162
$endif(_WDMDDK_) $if(_NTIFS_) _IRQL_requires_max_(APC_LEVEL) NTKERNELAPI NTSTATUS NTAPI PoQueueShutdownWorkItem(_Inout_ __drv_aliasesMem PWORK_QUEUE_ITEM WorkItem)
Definition: ke.h:202
NTKERNELAPI VOID NTAPI PoStartDeviceBusy(_Inout_ PULONG IdlePointer)
NTKERNELAPI VOID NTAPI PoSetDeviceBusyEx(_Inout_ PULONG IdlePointer)
_In_ LPCGUID _In_ PPOWER_SETTING_CALLBACK _In_opt_ PVOID _Outptr_opt_ PVOID * Handle
Definition: pofuncs.h:123
NTKERNELAPI VOID NTAPI PoEndDeviceBusy(_Inout_ PULONG IdlePointer)
_In_ ULONG _In_ ULONG PerformanceIdleTime
Definition: pofuncs.h:25
NTKERNELAPI NTSTATUS NTAPI PoRequestShutdownEvent(OUT PVOID *Event)
Definition: poshtdwn.c:399
_In_ LPCGUID SettingGuid
Definition: pofuncs.h:120
$if(_WDMDDK_) _IRQL_requires_max_(DISPATCH_LEVEL) NTKERNELAPI NTSTATUS NTAPI PoCallDriver(_In_ struct _DEVICE_OBJECT *DeviceObject
Definition: ke.h:1
_In_ UCHAR _In_ POWER_STATE _In_opt_ PREQUEST_POWER_COMPLETE CompletionFunction
Definition: pofuncs.h:44
_In_ ULONG ConservationIdleTime
Definition: pofuncs.h:24
enum _POWER_REQUEST_TYPE POWER_REQUEST_TYPE
REQUEST_POWER_COMPLETE * PREQUEST_POWER_COMPLETE
Definition: potypes.h:469
POWER_SETTING_CALLBACK * PPOWER_SETTING_CALLBACK
Definition: potypes.h:479
ULONG EXECUTION_STATE
Definition: potypes.h:213
unsigned char UCHAR
Definition: xmlstorage.h:181