ReactOS  0.4.15-dev-3287-gfec35dc
FxWmiProviderFunctionControlCallback Struct Reference

#include <fxwmiprovider.hpp>

Inheritance diagram for FxWmiProviderFunctionControlCallback:
Collaboration diagram for FxWmiProviderFunctionControlCallback:

Public Member Functions

 FxWmiProviderFunctionControlCallback (PFX_DRIVER_GLOBALS FxDriverGlobals)
 
 ~FxWmiProviderFunctionControlCallback ()
 
_Must_inspect_result_ NTSTATUS Invoke (__in WDFDEVICE Device, __in WDFWMIPROVIDER WmiProvider, __in WDF_WMI_PROVIDER_CONTROL Control, __in BOOLEAN Enable)
 
- 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_WMI_PROVIDER_FUNCTION_CONTROL m_Method
 

Additional Inherited Members

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

Detailed Description

Definition at line 31 of file fxwmiprovider.hpp.

Constructor & Destructor Documentation

◆ FxWmiProviderFunctionControlCallback()

FxWmiProviderFunctionControlCallback::FxWmiProviderFunctionControlCallback ( PFX_DRIVER_GLOBALS  FxDriverGlobals)
inline

Definition at line 35 of file fxwmiprovider.hpp.

37  :
38  FxCallback(FxDriverGlobals),
39  m_Method(NULL)
40  {
41  }
FxCallback(__in_opt PFX_DRIVER_GLOBALS FxDriverGlobals=NULL)
Definition: fxcallback.hpp:36
PFN_WDF_WMI_PROVIDER_FUNCTION_CONTROL m_Method
#define NULL
Definition: types.h:112

◆ ~FxWmiProviderFunctionControlCallback()

FxWmiProviderFunctionControlCallback::~FxWmiProviderFunctionControlCallback ( )
inline

Definition at line 43 of file fxwmiprovider.hpp.

44  {
45  }

Member Function Documentation

◆ Invoke()

_Must_inspect_result_ NTSTATUS FxWmiProviderFunctionControlCallback::Invoke ( __in WDFDEVICE  Device,
__in WDFWMIPROVIDER  WmiProvider,
__in WDF_WMI_PROVIDER_CONTROL  Control,
__in BOOLEAN  Enable 
)
inline

Definition at line 49 of file fxwmiprovider.hpp.

55  {
57 
59 
60  if (m_Method != NULL) {
61  CallbackStart();
63  CallbackEnd();
64  }
65  else {
67  }
68 
69  return status;
70  }
#define UNREFERENCED_PARAMETER(P)
Definition: ntbasedef.h:317
LONG NTSTATUS
Definition: precomp.h:26
_In_ ULONGLONG _In_ ULONGLONG _In_ BOOLEAN Enable
Definition: ntddpcm.h:140
PFN_WDF_WMI_PROVIDER_FUNCTION_CONTROL m_Method
_In_ WDF_WMI_PROVIDER_CONTROL Control
Definition: wdfwmi.h:166
_Must_inspect_result_ _In_ WDFDEVICE _In_ PWDF_WMI_PROVIDER_CONFIG _In_opt_ PWDF_OBJECT_ATTRIBUTES _Out_ WDFWMIPROVIDER * WmiProvider
Definition: wdfwmi.h:356
_Must_inspect_result_ _In_ WDFDEVICE Device
Definition: wdfchildlist.h:474
#define NULL
Definition: types.h:112
void __inline CallbackStart(VOID)
Definition: fxcallback.hpp:64
#define STATUS_SUCCESS
Definition: shellext.h:65
static SERVICE_STATUS status
Definition: service.c:31
void __inline CallbackEnd(VOID)
Definition: fxcallback.hpp:74
Definition: ps.c:97

Referenced by FxWmiProvider::FunctionControl().

Member Data Documentation

◆ m_Method

PFN_WDF_WMI_PROVIDER_FUNCTION_CONTROL FxWmiProviderFunctionControlCallback::m_Method

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