#include "private.hpp"
#include <debug.h>
Go to the source code of this file.
◆ NDEBUG
◆ PcRegisterAdapterPowerManagement()
Definition at line 16 of file power.cpp.
19{
23 IAdapterPowerManagement * pPower;
24
25 DPRINT(
"PcRegisterAdapterPowerManagement pUnknown %p pvContext %p\n",
pUnknown, pvContext);
27
30
33
36 {
37 DPRINT1(
"PcRegisterAdapterPowerManagement no IAdapterPowerManagement interface %x\n",
Status);
40 }
41
43 DPRINT(
"PcRegisterAdapterPowerManagement success %x\n",
Status);
45}
#define NT_SUCCESS(StatCode)
struct _DEVICE_OBJECT * PDEVICE_OBJECT
HRESULT QueryInterface([in] REFIID riid, [out, iid_is(riid)] void **ppvObject)
_In_ PNDIS_STRING _In_ PNDIS_STRING _Out_ PDEVICE_OBJECT * pDeviceObject
#define PC_ASSERT_IRQL_EQUAL(x)
struct PCLASS_DEVICE_EXTENSION * PPCLASS_DEVICE_EXTENSION
IAdapterPowerManagement * AdapterPowerManagement
#define STATUS_INVALID_PARAMETER
Referenced by StartDevice().
◆ PcRequestNewPowerState()
Definition at line 85 of file power.cpp.
88{
93
95
98
101
104
107 {
109 }
110
112}
static VOID NTAPI PwrCompletionCallback(IN PDEVICE_OBJECT DeviceObject, IN UCHAR MinorFunction, IN POWER_STATE PowerState, IN PVOID Context, IN PIO_STATUS_BLOCK IoStatus)
#define KeWaitForSingleObject(pEvt, foo, a, b, c)
#define KeInitializeEvent(pEvt, foo, foo2)
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)
PDEVICE_OBJECT PhysicalDeviceObject
_In_ PDEVICE_OBJECT DeviceObject
_Must_inspect_result_ _In_ PWDFDEVICE_INIT _In_ WDF_DEVICE_POWER_STATE PowerState
◆ PcUnregisterAdapterPowerManagement()
Definition at line 49 of file power.cpp.
51{
53
56
59
61
63 {
65 }
68}
◆ PwrCompletionCallback()