ReactOS  0.4.15-dev-3173-g40ee59d
FxPowerStateCallback Struct Reference

#include <fxpnpcallbacks.hpp>

Inheritance diagram for FxPowerStateCallback:
Collaboration diagram for FxPowerStateCallback:

Public Member Functions

 FxPowerStateCallback (VOID)
 
VOID Invoke (__in WDF_DEVICE_POWER_STATE State, __in WDF_STATE_NOTIFICATION_TYPE Type, __in WDFDEVICE Device, __in PCWDF_DEVICE_POWER_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

FxPowerStateCallbackInfo m_Methods [WdfDevStatePowerNull-WdfDevStatePowerObjectCreated]
 

Additional Inherited Members

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

Detailed Description

Definition at line 1053 of file fxpnpcallbacks.hpp.

Constructor & Destructor Documentation

◆ FxPowerStateCallback()

FxPowerStateCallback::FxPowerStateCallback ( VOID  )
inline

Definition at line 1054 of file fxpnpcallbacks.hpp.

1056  : FxCallback()
1057  {
1058  RtlZeroMemory(&m_Methods[0], sizeof(m_Methods));
1059  }
FxCallback(__in_opt PFX_DRIVER_GLOBALS FxDriverGlobals=NULL)
Definition: fxcallback.hpp:36
FxPowerStateCallbackInfo m_Methods[WdfDevStatePowerNull-WdfDevStatePowerObjectCreated]
#define RtlZeroMemory(Destination, Length)
Definition: typedefs.h:262

Member Function Documentation

◆ Invoke()

VOID FxPowerStateCallback::Invoke ( __in WDF_DEVICE_POWER_STATE  State,
__in WDF_STATE_NOTIFICATION_TYPE  Type,
__in WDFDEVICE  Device,
__in PCWDF_DEVICE_POWER_NOTIFICATION_DATA  NotificationData 
)
inline

Definition at line 1062 of file fxpnpcallbacks.hpp.

1068  {
1069  FxPowerStateCallbackInfo *pInfo;
1070 
1072 
1073  if (pInfo->Callback != NULL && (pInfo->Types & Type)) {
1074  CallbackStart();
1075  pInfo->Callback(Device, NotificationData);
1076  CallbackEnd();
1077  }
1078  }
FxPowerStateCallbackInfo m_Methods[WdfDevStatePowerNull-WdfDevStatePowerObjectCreated]
PFN_WDF_DEVICE_POWER_STATE_CHANGE_NOTIFICATION Callback
Type
Definition: Type.h:6
_Must_inspect_result_ _In_ WDFDEVICE Device
Definition: wdfchildlist.h:474
FORCEINLINE ULONG WdfDevStateNormalize(_In_ ULONG State)
Definition: wdfdevice.h:1225
#define NULL
Definition: types.h:112
void __inline CallbackStart(VOID)
Definition: fxcallback.hpp:64
_In_ PCWDF_DEVICE_PNP_NOTIFICATION_DATA NotificationData
Definition: wdfdevice.h:782
void __inline CallbackEnd(VOID)
Definition: fxcallback.hpp:74

Referenced by FxPkgPnp::PowerEnterNewState().

Member Data Documentation

◆ m_Methods

Definition at line 1080 of file fxpnpcallbacks.hpp.

Referenced by FxPowerStateCallback(), and Invoke().


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