ReactOS  0.4.15-dev-3287-gfec35dc
wdfcontrol.h
Go to the documentation of this file.
1 /*++
2 
3 Copyright (c) Microsoft Corporation. All rights reserved.
4 
5 _WdfVersionBuild_
6 
7 Module Name:
8 
9  wdfcontrol.h
10 
11 Abstract:
12 
13  Defines functions for controller and creating a "controller" NT4 style
14  WDFDEVICE handle.
15 
16 Environment:
17 
18  kernel mode only
19 
20 Revision History:
21 
22 --*/
23 
24 //
25 // NOTE: This header is generated by stubwork. Please make any
26 // modifications to the corresponding template files
27 // (.x or .y) and use stubwork to regenerate the header
28 //
29 
30 #ifndef _WDFCONTROL_H_
31 #define _WDFCONTROL_H_
32 
33 #ifndef WDF_EXTERN_C
34  #ifdef __cplusplus
35  #define WDF_EXTERN_C extern "C"
36  #define WDF_EXTERN_C_START extern "C" {
37  #define WDF_EXTERN_C_END }
38  #else
39  #define WDF_EXTERN_C
40  #define WDF_EXTERN_C_START
41  #define WDF_EXTERN_C_END
42  #endif
43 #endif
44 
46 
47 
48 
49 #if (NTDDI_VERSION >= NTDDI_WIN2K)
50 
51 typedef
52 _Function_class_(EVT_WDF_DEVICE_SHUTDOWN_NOTIFICATION)
55 VOID
56 STDCALL
57 EVT_WDF_DEVICE_SHUTDOWN_NOTIFICATION(
58  _In_
59  WDFDEVICE Device
60  );
61 
62 typedef EVT_WDF_DEVICE_SHUTDOWN_NOTIFICATION *PFN_WDF_DEVICE_SHUTDOWN_NOTIFICATION;
63 
68 
69 
70 
71 //
72 // WDF Function: WdfControlDeviceInitAllocate
73 //
74 typedef
77 WDFAPI
79 (STDCALL *PFN_WDFCONTROLDEVICEINITALLOCATE)(
80  _In_
82  _In_
83  WDFDRIVER Driver,
84  _In_
86  );
87 
92 WdfControlDeviceInitAllocate(
93  _In_
94  WDFDRIVER Driver,
95  _In_
97  )
98 {
99  return ((PFN_WDFCONTROLDEVICEINITALLOCATE) WdfFunctions[WdfControlDeviceInitAllocateTableIndex])(WdfDriverGlobals, Driver, SDDLString);
100 }
101 
102 //
103 // WDF Function: WdfControlDeviceInitSetShutdownNotification
104 //
105 typedef
107 WDFAPI
108 VOID
109 (STDCALL *PFN_WDFCONTROLDEVICEINITSETSHUTDOWNNOTIFICATION)(
110  _In_
112  _In_
114  _In_
116  _In_
117  UCHAR Flags
118  );
119 
122 VOID
123 WdfControlDeviceInitSetShutdownNotification(
124  _In_
126  _In_
128  _In_
129  UCHAR Flags
130  )
131 {
133 }
134 
135 //
136 // WDF Function: WdfControlFinishInitializing
137 //
138 typedef
140 WDFAPI
141 VOID
142 (STDCALL *PFN_WDFCONTROLFINISHINITIALIZING)(
143  _In_
145  _In_
146  WDFDEVICE Device
147  );
148 
151 VOID
152 WdfControlFinishInitializing(
153  _In_
154  WDFDEVICE Device
155  )
156 {
157  ((PFN_WDFCONTROLFINISHINITIALIZING) WdfFunctions[WdfControlFinishInitializingTableIndex])(WdfDriverGlobals, Device);
158 }
159 
160 
161 
162 #endif // (NTDDI_VERSION >= NTDDI_WIN2K)
163 
164 
165 
167 
168 #endif // _WDFCONTROL_H_
169 
struct WDFDEVICE_INIT * PWDFDEVICE_INIT
Definition: wdftypes.h:99
enum _WDF_DEVICE_SHUTDOWN_FLAGS WDF_DEVICE_SHUTDOWN_FLAGS
EVT_WDF_DEVICE_SHUTDOWN_NOTIFICATION * PFN_WDF_DEVICE_SHUTDOWN_NOTIFICATION
Definition: wdfcontrol.h:62
#define WDF_EXTERN_C_END
Definition: wdfcontrol.h:41
DriverGlobals
_In_ WDFDEVICE Device
Definition: wdfcontrol.h:147
#define WdfFunctions
Definition: wdf.h:66
#define WDFAPI
Definition: wdftypes.h:53
WDF_EXTERN_C_START typedef _Function_class_(EVT_WDF_DEVICE_SHUTDOWN_NOTIFICATION) _IRQL_requires_same_ _IRQL_requires_max_(PASSIVE_LEVEL) VOID STDCALL EVT_WDF_DEVICE_SHUTDOWN_NOTIFICATION(_In_ WDFDEVICE Device)
_WDF_DEVICE_SHUTDOWN_FLAGS
Definition: wdfcontrol.h:64
#define WDF_EXTERN_C_START
Definition: wdfcontrol.h:40
#define _In_
Definition: ms_sal.h:308
#define _IRQL_requires_same_
Definition: driverspecs.h:232
PWDF_DRIVER_GLOBALS WdfDriverGlobals
_Must_inspect_result_ _In_ ULONG Flags
Definition: wsk.h:170
#define STDCALL
Definition: wdf.h:45
unsigned char UCHAR
Definition: xmlstorage.h:181
#define VOID
Definition: acefi.h:82
#define PASSIVE_LEVEL
Definition: env_spec_w32.h:693
#define _Must_inspect_result_
Definition: ms_sal.h:558
_Must_inspect_result_ _In_ WDFDEVICE Device
Definition: wdfchildlist.h:474
_In_ PWDFDEVICE_INIT _In_ PFN_WDF_DEVICE_SHUTDOWN_NOTIFICATION Notification
Definition: wdfcontrol.h:113
#define DISPATCH_LEVEL
Definition: env_spec_w32.h:696
#define FORCEINLINE
Definition: wdftypes.h:67
_Must_inspect_result_ _In_ WDFDRIVER _In_ CONST UNICODE_STRING * SDDLString
Definition: wdfcontrol.h:83
_In_ PWDFDEVICE_INIT _In_ PFN_WDF_DEVICE_SHUTDOWN_NOTIFICATION _In_ UCHAR Flags
Definition: wdfcontrol.h:113
_In_ PWDFDEVICE_INIT DeviceInit
Definition: wdfcontrol.h:113
_Must_inspect_result_ _IRQL_requires_max_(PASSIVE_LEVEL) WDFAPI PWDFDEVICE_INIT(STDCALL *PFN_WDFCONTROLDEVICEINITALLOCATE)(_In_ PWDF_DRIVER_GLOBALS DriverGlobals
Definition: wdfcontrol.h:76
_Must_inspect_result_ _In_ WDFDRIVER Driver
Definition: wdfcontrol.h:83
#define CONST
Definition: pedump.c:81