ReactOS 0.4.16-dev-334-g4d9f67c
FxPowerPolicyStateCallback Struct Reference

#include <fxpnpcallbacks.hpp>

Inheritance diagram for FxPowerPolicyStateCallback:
Collaboration diagram for FxPowerPolicyStateCallback:

Public Member Functions

 FxPowerPolicyStateCallback (VOID)
 
VOID Invoke (__in WDF_DEVICE_POWER_POLICY_STATE State, __in WDF_STATE_NOTIFICATION_TYPE Type, __in WDFDEVICE Device, __in PCWDF_DEVICE_POWER_POLICY_NOTIFICATION_DATA NotificationData)
 
- Public Member Functions inherited from FxCallback
 FxCallback (__in_opt PFX_DRIVER_GLOBALS FxDriverGlobals=NULL)
 
PVOID operator new (__in size_t Size, __in PFX_DRIVER_GLOBALS FxDriverGlobals, __in POOL_TYPE PoolType=NonPagedPool)
 
VOID operator delete (__in PVOID pointer)
 

Public Attributes

FxPowerPolicyStateCallbackInfo m_Methods [WdfDevStatePwrPolNull-WdfDevStatePwrPolObjectCreated]
 

Additional Inherited Members

- Protected Member Functions inherited from FxCallback
void __inline CallbackStart (VOID)
 
void __inline CallbackEnd (VOID)
 

Detailed Description

Definition at line 1095 of file fxpnpcallbacks.hpp.

Constructor & Destructor Documentation

◆ FxPowerPolicyStateCallback()

FxPowerPolicyStateCallback::FxPowerPolicyStateCallback ( VOID  )
inline

Definition at line 1096 of file fxpnpcallbacks.hpp.

1098 : FxCallback()
1099 {
1100 RtlZeroMemory(&m_Methods[0], sizeof(m_Methods));
1101 }
FxPowerPolicyStateCallbackInfo m_Methods[WdfDevStatePwrPolNull-WdfDevStatePwrPolObjectCreated]
#define RtlZeroMemory(Destination, Length)
Definition: typedefs.h:262

Member Function Documentation

◆ Invoke()

VOID FxPowerPolicyStateCallback::Invoke ( __in WDF_DEVICE_POWER_POLICY_STATE  State,
__in WDF_STATE_NOTIFICATION_TYPE  Type,
__in WDFDEVICE  Device,
__in PCWDF_DEVICE_POWER_POLICY_NOTIFICATION_DATA  NotificationData 
)
inline

Definition at line 1104 of file fxpnpcallbacks.hpp.

1110 {
1112
1114
1115 if (pInfo->Callback != NULL && (pInfo->Types & Type)) {
1116 CallbackStart();
1118 CallbackEnd();
1119 }
1120 }
Type
Definition: Type.h:7
void __inline CallbackStart(VOID)
Definition: fxcallback.hpp:64
void __inline CallbackEnd(VOID)
Definition: fxcallback.hpp:74
#define NULL
Definition: types.h:112
PFN_WDF_DEVICE_POWER_POLICY_STATE_CHANGE_NOTIFICATION Callback
_Must_inspect_result_ _In_ WDFDEVICE Device
Definition: wdfchildlist.h:474
FORCEINLINE ULONG WdfDevStateNormalize(_In_ ULONG State)
Definition: wdfdevice.h:1225
_In_ PCWDF_DEVICE_PNP_NOTIFICATION_DATA NotificationData
Definition: wdfdevice.h:782
@ WdfDevStatePwrPolObjectCreated
Definition: wdfdevice.h:232

Referenced by FxPkgPnp::NotPowerPolicyOwnerEnterNewState(), and FxPkgPnp::PowerPolicyEnterNewState().

Member Data Documentation

◆ m_Methods

Definition at line 1122 of file fxpnpcallbacks.hpp.

Referenced by FxPowerPolicyStateCallback(), and Invoke().


The documentation for this struct was generated from the following file: