ReactOS  0.4.15-dev-5461-g062a8f2
FxPnpDeviceSetLock Class Reference

#include <fxpnpcallbacks.hpp>

Inheritance diagram for FxPnpDeviceSetLock:
Collaboration diagram for FxPnpDeviceSetLock:

Public Member Functions

 FxPnpDeviceSetLock (VOID)
 
_Must_inspect_result_ NTSTATUS Invoke (__in WDFDEVICE Device, __in BOOLEAN Lock)
 
- 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_DEVICE_SET_LOCK m_Method
 

Additional Inherited Members

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

Detailed Description

Definition at line 709 of file fxpnpcallbacks.hpp.

Constructor & Destructor Documentation

◆ FxPnpDeviceSetLock()

FxPnpDeviceSetLock::FxPnpDeviceSetLock ( VOID  )
inline

Definition at line 714 of file fxpnpcallbacks.hpp.

716  : FxCallback(), m_Method(NULL)
717  {
718  }
FxCallback(__in_opt PFX_DRIVER_GLOBALS FxDriverGlobals=NULL)
Definition: fxcallback.hpp:36
PFN_WDF_DEVICE_SET_LOCK m_Method
#define NULL
Definition: types.h:112

Member Function Documentation

◆ Invoke()

_Must_inspect_result_ NTSTATUS FxPnpDeviceSetLock::Invoke ( __in WDFDEVICE  Device,
__in BOOLEAN  Lock 
)
inline

Definition at line 722 of file fxpnpcallbacks.hpp.

726  {
727  if (m_Method != NULL) {
729 
730  CallbackStart();
732  CallbackEnd();
733 
734  return status;
735  }
736  else {
737  return STATUS_UNSUCCESSFUL;
738  }
739  }
PFN_WDF_DEVICE_SET_LOCK m_Method
LONG NTSTATUS
Definition: precomp.h:26
#define STATUS_UNSUCCESSFUL
Definition: udferr_usr.h:132
_Must_inspect_result_ _In_ WDFDEVICE Device
Definition: wdfchildlist.h:474
#define NULL
Definition: types.h:112
_Must_inspect_result_ _In_opt_ PWDF_OBJECT_ATTRIBUTES _Out_ WDFWAITLOCK * Lock
Definition: wdfsync.h:124
void __inline CallbackStart(VOID)
Definition: fxcallback.hpp:64
static SERVICE_STATUS status
Definition: service.c:31
void __inline CallbackEnd(VOID)
Definition: fxcallback.hpp:74
Definition: ps.c:97

Member Data Documentation

◆ m_Method

PFN_WDF_DEVICE_SET_LOCK FxPnpDeviceSetLock::m_Method

Definition at line 712 of file fxpnpcallbacks.hpp.

Referenced by Invoke(), and FxPkgPdo::RegisterCallbacks().


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