ReactOS 0.4.15-dev-8052-gc0e3179
fxdrivercallbacks.hpp
Go to the documentation of this file.
1/*++
2
3Copyright (c) Microsoft Corporation
4
5Module Name:
6
7 FxDriverCallbacks.h
8
9Abstract:
10
11 This module implements the FxDriver object callbacks
12
13Author:
14
15
16
17
18Environment:
19
20 Both kernel and user mode
21
22Revision History:
23
24--*/
25
26#ifndef _FXDRIVERCALLBACKS_H_
27#define _FXDRIVERCALLBACKS_H_
28
29//
30// These delegates are in a seperate file
31//
32
33//
34// DrvDeviceInitialize callback delegate
35//
37
38public:
40
42 VOID
43 ) :
45 {
46 Method = NULL;
47 }
48
52 __in WDFDRIVER Driver,
54 )
55 {
56 if (Method != NULL) {
58 KIRQL irql = 0;
59
63
64 return status;
65 }
66 else {
68 }
69 }
70};
71
72//
73// DrvUnload callback delegate
74//
75class FxDriverUnload : public FxCallback {
76
77public:
78
80
82 VOID
83 ) :
85 {
86 Method = NULL;
87 }
88
89 void
91 __in WDFDRIVER Driver
92 )
93 {
94 if (Method != NULL) {
95
99 return;
100 }
101 else {
102 return;
103 }
104 }
105};
106
107#endif // _FXDRIVERCALLBACKS_H_
LONG NTSTATUS
Definition: precomp.h:26
void __inline CallbackStart(VOID)
Definition: fxcallback.hpp:64
void __inline CallbackEnd(VOID)
Definition: fxcallback.hpp:74
_Must_inspect_result_ NTSTATUS Invoke(__in WDFDRIVER Driver, __in PWDFDEVICE_INIT DeviceInit)
PFN_WDF_DRIVER_DEVICE_ADD Method
PFN_WDF_DRIVER_UNLOAD Method
void Invoke(__in WDFDRIVER Driver)
__inline void CallbackEnd(__in KIRQL PreviousIrql)
Definition: fxcallback.hpp:126
__inline void CallbackStart(__out PKIRQL PreviousIrql)
Definition: fxcallback.hpp:115
#define __in
Definition: dbghelp.h:35
#define NULL
Definition: types.h:112
KIRQL irql
Definition: wave.h:1
UCHAR KIRQL
Definition: env_spec_w32.h:591
#define _Must_inspect_result_
Definition: ms_sal.h:558
Definition: ps.c:97
#define STATUS_UNSUCCESSFUL
Definition: udferr_usr.h:132
_Must_inspect_result_ _In_ WDFDRIVER Driver
Definition: wdfcontrol.h:83
_In_ PWDFDEVICE_INIT DeviceInit
Definition: wdfcontrol.h:113
EVT_WDF_DRIVER_DEVICE_ADD * PFN_WDF_DRIVER_DEVICE_ADD
Definition: wdfdriver.h:78
EVT_WDF_DRIVER_UNLOAD * PFN_WDF_DRIVER_UNLOAD
Definition: wdfdriver.h:91