ReactOS  0.4.15-dev-3173-g40ee59d
FxEvtDmaEnablerDisableCallback Class Reference

#include <fxdmaenablercallbacks.hpp>

Inheritance diagram for FxEvtDmaEnablerDisableCallback:
Collaboration diagram for FxEvtDmaEnablerDisableCallback:

Public Member Functions

 FxEvtDmaEnablerDisableCallback (VOID)
 
NTSTATUS Invoke (__in WDFDMAENABLER Handle)
 
- 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

PFN_WDF_DMA_ENABLER_DISABLE m_Method
 
NTSTATUS m_Status
 

Additional Inherited Members

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

Detailed Description

Definition at line 147 of file fxdmaenablercallbacks.hpp.

Constructor & Destructor Documentation

◆ FxEvtDmaEnablerDisableCallback()

FxEvtDmaEnablerDisableCallback::FxEvtDmaEnablerDisableCallback ( VOID  )
inline

Definition at line 154 of file fxdmaenablercallbacks.hpp.

156  :
157  FxCallback(),
158  m_Method(NULL),
160  {
161  }
FxCallback(__in_opt PFX_DRIVER_GLOBALS FxDriverGlobals=NULL)
Definition: fxcallback.hpp:36
PFN_WDF_DMA_ENABLER_DISABLE m_Method
#define NULL
Definition: types.h:112
#define STATUS_SUCCESS
Definition: shellext.h:65

Member Function Documentation

◆ Invoke()

NTSTATUS FxEvtDmaEnablerDisableCallback::Invoke ( __in WDFDMAENABLER  Handle)
inline

Definition at line 164 of file fxdmaenablercallbacks.hpp.

167  {
168  if (m_Method) {
169  CallbackStart();
170  m_Status = m_Method( Handle );
171  CallbackEnd();
172  }
173  else {
175  }
176  return m_Status;
177  }
PFN_WDF_DMA_ENABLER_DISABLE m_Method
_In_ HANDLE Handle
Definition: extypes.h:390
void __inline CallbackStart(VOID)
Definition: fxcallback.hpp:64
#define STATUS_SUCCESS
Definition: shellext.h:65
void __inline CallbackEnd(VOID)
Definition: fxcallback.hpp:74

Referenced by FxDmaEnabler::PowerDown().

Member Data Documentation

◆ m_Method

PFN_WDF_DMA_ENABLER_DISABLE FxEvtDmaEnablerDisableCallback::m_Method

◆ m_Status

NTSTATUS FxEvtDmaEnablerDisableCallback::m_Status

Definition at line 152 of file fxdmaenablercallbacks.hpp.

Referenced by Invoke().


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