ReactOS 0.4.15-dev-7958-gcd0bb1a
wdfcontrol.h
Go to the documentation of this file.
1/*++
2
3Copyright (c) Microsoft Corporation. All rights reserved.
4
5_WdfVersionBuild_
6
7Module Name:
8
9 wdfcontrol.h
10
11Abstract:
12
13 Defines functions for controller and creating a "controller" NT4 style
14 WDFDEVICE handle.
15
16Environment:
17
18 kernel mode only
19
20Revision 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
51typedef
52_Function_class_(EVT_WDF_DEVICE_SHUTDOWN_NOTIFICATION)
55VOID
57EVT_WDF_DEVICE_SHUTDOWN_NOTIFICATION(
58 _In_
59 WDFDEVICE Device
60 );
61
62typedef EVT_WDF_DEVICE_SHUTDOWN_NOTIFICATION *PFN_WDF_DEVICE_SHUTDOWN_NOTIFICATION;
63
68
69
70
71//
72// WDF Function: WdfControlDeviceInitAllocate
73//
74typedef
79(STDCALL *PFN_WDFCONTROLDEVICEINITALLOCATE)(
80 _In_
82 _In_
83 WDFDRIVER Driver,
84 _In_
86 );
87
92WdfControlDeviceInitAllocate(
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//
105typedef
107WDFAPI
108VOID
109(STDCALL *PFN_WDFCONTROLDEVICEINITSETSHUTDOWNNOTIFICATION)(
110 _In_
112 _In_
114 _In_
116 _In_
118 );
119
122VOID
123WdfControlDeviceInitSetShutdownNotification(
124 _In_
126 _In_
128 _In_
130 )
131{
133}
134
135//
136// WDF Function: WdfControlFinishInitializing
137//
138typedef
140WDFAPI
141VOID
142(STDCALL *PFN_WDFCONTROLFINISHINITIALIZING)(
143 _In_
145 _In_
146 WDFDEVICE Device
147 );
148
151VOID
152WdfControlFinishInitializing(
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
#define VOID
Definition: acefi.h:82
#define _IRQL_requires_same_
Definition: driverspecs.h:232
#define PASSIVE_LEVEL
Definition: env_spec_w32.h:693
#define DISPATCH_LEVEL
Definition: env_spec_w32.h:696
DriverGlobals
#define _Function_class_(x)
Definition: ms_sal.h:2946
#define _Must_inspect_result_
Definition: ms_sal.h:558
#define _In_
Definition: ms_sal.h:308
#define CONST
Definition: pedump.c:81
#define STDCALL
Definition: wdf.h:45
#define WdfFunctions
Definition: wdf.h:66
_Must_inspect_result_ _In_ WDFDEVICE Device
Definition: wdfchildlist.h:474
_In_ PWDFDEVICE_INIT _In_ PFN_WDF_DEVICE_SHUTDOWN_NOTIFICATION _In_ UCHAR Flags
Definition: wdfcontrol.h:118
#define WDF_EXTERN_C_END
Definition: wdfcontrol.h:41
_In_ WDFDEVICE Device
Definition: wdfcontrol.h:147
_Must_inspect_result_ _In_ WDFDRIVER Driver
Definition: wdfcontrol.h:83
_Must_inspect_result_ _IRQL_requires_max_(PASSIVE_LEVEL) WDFAPI PWDFDEVICE_INIT(STDCALL *PFN_WDFCONTROLDEVICEINITALLOCATE)(_In_ PWDF_DRIVER_GLOBALS DriverGlobals
Definition: wdfcontrol.h:76
#define WDF_EXTERN_C_START
Definition: wdfcontrol.h:40
_Must_inspect_result_ _In_ WDFDRIVER _In_ CONST UNICODE_STRING * SDDLString
Definition: wdfcontrol.h:86
enum _WDF_DEVICE_SHUTDOWN_FLAGS WDF_DEVICE_SHUTDOWN_FLAGS
_WDF_DEVICE_SHUTDOWN_FLAGS
Definition: wdfcontrol.h:64
@ WdfDeviceLastChanceShutdown
Definition: wdfcontrol.h:66
@ WdfDeviceShutdown
Definition: wdfcontrol.h:65
_In_ PWDFDEVICE_INIT DeviceInit
Definition: wdfcontrol.h:113
EVT_WDF_DEVICE_SHUTDOWN_NOTIFICATION * PFN_WDF_DEVICE_SHUTDOWN_NOTIFICATION
Definition: wdfcontrol.h:62
_In_ PWDFDEVICE_INIT _In_ PFN_WDF_DEVICE_SHUTDOWN_NOTIFICATION Notification
Definition: wdfcontrol.h:115
PWDF_DRIVER_GLOBALS WdfDriverGlobals
@ WdfControlDeviceInitAllocateTableIndex
Definition: wdffuncenum.h:50
@ WdfControlFinishInitializingTableIndex
Definition: wdffuncenum.h:52
@ WdfControlDeviceInitSetShutdownNotificationTableIndex
Definition: wdffuncenum.h:51
#define WDFAPI
Definition: wdftypes.h:53
#define FORCEINLINE
Definition: wdftypes.h:67
struct WDFDEVICE_INIT * PWDFDEVICE_INIT
Definition: wdftypes.h:99
_Must_inspect_result_ _In_ ULONG Flags
Definition: wsk.h:170
unsigned char UCHAR
Definition: xmlstorage.h:181