ReactOS
0.4.16-dev-746-g329a414
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
//
36
class
FxIoInCallerContext
:
public
FxCallback
{
37
38
public
:
39
PFN_WDF_IO_IN_CALLER_CONTEXT
m_Method
;
40
41
FxIoInCallerContext
(
42
__in
PFX_DRIVER_GLOBALS
FxDriverGlobals
43
) :
FxCallback
(FxDriverGlobals),
m_Method
(
NULL
)
44
{
45
}
46
47
VOID
48
Invoke
(
49
__in
WDFDEVICE
Device
,
50
__in
WDFREQUEST
Request
51
)
52
{
53
if
(
m_Method
!=
NULL
) {
54
CallbackStart
();
55
m_Method
(
Device
,
Request
);
56
CallbackEnd
();
57
}
58
}
59
};
60
61
62
63
#endif
// _FXDEVICECALLBACKS_H_
FxCallback
Definition:
fxcallback.hpp:32
FxCallback::CallbackStart
void __inline CallbackStart(VOID)
Definition:
fxcallback.hpp:64
FxCallback::CallbackEnd
void __inline CallbackEnd(VOID)
Definition:
fxcallback.hpp:74
FxIoInCallerContext
Definition:
fxdevicecallbacks.hpp:36
FxIoInCallerContext::FxIoInCallerContext
FxIoInCallerContext(__in PFX_DRIVER_GLOBALS FxDriverGlobals)
Definition:
fxdevicecallbacks.hpp:41
FxIoInCallerContext::m_Method
PFN_WDF_IO_IN_CALLER_CONTEXT m_Method
Definition:
fxdevicecallbacks.hpp:39
FxIoInCallerContext::Invoke
VOID Invoke(__in WDFDEVICE Device, __in WDFREQUEST Request)
Definition:
fxdevicecallbacks.hpp:48
__in
#define __in
Definition:
dbghelp.h:35
NULL
#define NULL
Definition:
types.h:112
void
Definition:
nsiface.idl:2307
_FX_DRIVER_GLOBALS
Definition:
fxglobals.h:165
Device
_Must_inspect_result_ _In_ WDFDEVICE Device
Definition:
wdfchildlist.h:474
PFN_WDF_IO_IN_CALLER_CONTEXT
EVT_WDF_IO_IN_CALLER_CONTEXT * PFN_WDF_IO_IN_CALLER_CONTEXT
Definition:
wdfdevice.h:1728
Request
_In_ WDFREQUEST Request
Definition:
wdfdevice.h:547
sdk
lib
drivers
wdf
shared
inc
private
common
fxdevicecallbacks.hpp
Generated on Thu Feb 13 2025 06:14:21 for ReactOS by
1.9.6