ReactOS 0.4.15-dev-7834-g00c4b3d
FxPnpStateCallback Struct Reference

#include <fxpnpcallbacks.hpp>

Inheritance diagram for FxPnpStateCallback:
Collaboration diagram for FxPnpStateCallback:

Public Member Functions

 FxPnpStateCallback (VOID)
 
VOID Invoke (__in WDF_DEVICE_PNP_STATE State, __in WDF_STATE_NOTIFICATION_TYPE Type, __in WDFDEVICE Device, __in PCWDF_DEVICE_PNP_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

FxPnpStateCallbackInfo m_Methods [WdfDevStatePnpNull - WdfDevStatePnpObjectCreated]
 

Additional Inherited Members

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

Detailed Description

Definition at line 1010 of file fxpnpcallbacks.hpp.

Constructor & Destructor Documentation

◆ FxPnpStateCallback()

FxPnpStateCallback::FxPnpStateCallback ( VOID  )
inline

Definition at line 1012 of file fxpnpcallbacks.hpp.

1014 : FxCallback()
1015 {
1016 RtlZeroMemory(&m_Methods[0], sizeof(m_Methods));
1017 }
FxPnpStateCallbackInfo m_Methods[WdfDevStatePnpNull - WdfDevStatePnpObjectCreated]
#define RtlZeroMemory(Destination, Length)
Definition: typedefs.h:262

Member Function Documentation

◆ Invoke()

VOID FxPnpStateCallback::Invoke ( __in WDF_DEVICE_PNP_STATE  State,
__in WDF_STATE_NOTIFICATION_TYPE  Type,
__in WDFDEVICE  Device,
__in PCWDF_DEVICE_PNP_NOTIFICATION_DATA  NotificationData 
)
inline

Definition at line 1020 of file fxpnpcallbacks.hpp.

1026 {
1028
1030
1031 if (pInfo->Callback != NULL && (pInfo->Types & Type)) {
1032 CallbackStart();
1034 CallbackEnd();
1035 }
1036 }
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_PNP_STATE_CHANGE_NOTIFICATION Callback
_Must_inspect_result_ _In_ WDFDEVICE Device
Definition: wdfchildlist.h:474
@ WdfDevStatePnpObjectCreated
Definition: wdfdevice.h:64
FORCEINLINE ULONG WdfDevStateNormalize(_In_ ULONG State)
Definition: wdfdevice.h:1225
_In_ PCWDF_DEVICE_PNP_NOTIFICATION_DATA NotificationData
Definition: wdfdevice.h:782

Referenced by FxPkgPnp::PnpEnterNewState().

Member Data Documentation

◆ m_Methods

Definition at line 1038 of file fxpnpcallbacks.hpp.

Referenced by FxPnpStateCallback(), and Invoke().


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