ReactOS  0.4.15-dev-2972-gda2a567
fxdevicecallbacks.hpp
Go to the documentation of this file.
1 /*++
2 
3 Copyright (c) Microsoft Corporation
4 
5 Module Name:
6 
7  FxDeviceCallbacks.h
8 
9 Abstract:
10 
11  This module implements the FxDevice object callbacks
12 
13 Author:
14 
15 
16 
17 
18 Environment:
19 
20  Both kernel and user mode
21 
22 Revision History:
23 
24 --*/
25 
26 #ifndef _FXDEVICECALLBACKS_H_
27 #define _FXDEVICECALLBACKS_H_
28 
29 //
30 // These delegates are in a seperate file
31 //
32 
33 //
34 // DrvDeviceInitialize callback delegate
35 //
37 
38 public:
40 
42  __in PFX_DRIVER_GLOBALS FxDriverGlobals
43  ) : FxCallback(FxDriverGlobals), m_Method(NULL)
44  {
45  }
46 
47  VOID
49  __in WDFDEVICE Device,
50  __in WDFREQUEST Request
51  )
52  {
53  if (m_Method != NULL) {
54  CallbackStart();
56  CallbackEnd();
57  }
58  }
59 };
60 
61 
62 
63 #endif // _FXDEVICECALLBACKS_H_
_In_ WDFREQUEST Request
Definition: wdfdevice.h:547
FxIoInCallerContext(__in PFX_DRIVER_GLOBALS FxDriverGlobals)
PFN_WDF_IO_IN_CALLER_CONTEXT m_Method
_Must_inspect_result_ _In_ WDFDEVICE Device
Definition: wdfchildlist.h:474
VOID Invoke(__in WDFDEVICE Device, __in WDFREQUEST Request)
#define NULL
Definition: types.h:112
void __inline CallbackStart(VOID)
Definition: fxcallback.hpp:64
#define __in
Definition: dbghelp.h:35
EVT_WDF_IO_IN_CALLER_CONTEXT * PFN_WDF_IO_IN_CALLER_CONTEXT
Definition: wdfdevice.h:1728
void __inline CallbackEnd(VOID)
Definition: fxcallback.hpp:74