ReactOS 0.4.16-dev-136-g52192f1
wdffileobject.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 wdffileobject.h
10
11Abstract:
12
13 This header containts the Windows Driver Framework file object
14 DDIs.
15
16Environment:
17
18 kernel mode only
19
20Revision History:
21
22
23--*/
24
25//
26// NOTE: This header is generated by stubwork. Please make any
27// modifications to the corresponding template files
28// (.x or .y) and use stubwork to regenerate the header
29//
30
31#ifndef _WDFFILEOBJECT_H_
32#define _WDFFILEOBJECT_H_
33
34#ifndef WDF_EXTERN_C
35 #ifdef __cplusplus
36 #define WDF_EXTERN_C extern "C"
37 #define WDF_EXTERN_C_START extern "C" {
38 #define WDF_EXTERN_C_END }
39 #else
40 #define WDF_EXTERN_C
41 #define WDF_EXTERN_C_START
42 #define WDF_EXTERN_C_END
43 #endif
44#endif
45
47
48
49
50#if (NTDDI_VERSION >= NTDDI_WIN2K)
51
52
53
54
55//
56// WDF Function: WdfFileObjectGetFileName
57//
58typedef
62(STDCALL *PFN_WDFFILEOBJECTGETFILENAME)(
63 _In_
65 _In_
66 WDFFILEOBJECT FileObject
67 );
68
72WdfFileObjectGetFileName(
73 _In_
74 WDFFILEOBJECT FileObject
75 )
76{
77 return ((PFN_WDFFILEOBJECTGETFILENAME) WdfFunctions[WdfFileObjectGetFileNameTableIndex])(WdfDriverGlobals, FileObject);
78}
79
80//
81// WDF Function: WdfFileObjectGetFlags
82//
83typedef
87(STDCALL *PFN_WDFFILEOBJECTGETFLAGS)(
88 _In_
90 _In_
91 WDFFILEOBJECT FileObject
92 );
93
97WdfFileObjectGetFlags(
98 _In_
99 WDFFILEOBJECT FileObject
100 )
101{
102 return ((PFN_WDFFILEOBJECTGETFLAGS) WdfFunctions[WdfFileObjectGetFlagsTableIndex])(WdfDriverGlobals, FileObject);
103}
104
105//
106// WDF Function: WdfFileObjectGetDevice
107//
108typedef
110WDFAPI
111WDFDEVICE
112(STDCALL *PFN_WDFFILEOBJECTGETDEVICE)(
113 _In_
115 _In_
116 WDFFILEOBJECT FileObject
117 );
118
121WDFDEVICE
122WdfFileObjectGetDevice(
123 _In_
124 WDFFILEOBJECT FileObject
125 )
126{
127 return ((PFN_WDFFILEOBJECTGETDEVICE) WdfFunctions[WdfFileObjectGetDeviceTableIndex])(WdfDriverGlobals, FileObject);
128}
129
130//
131// WDF Function: WdfFileObjectWdmGetFileObject
132//
133typedef
135WDFAPI
137(STDCALL *PFN_WDFFILEOBJECTWDMGETFILEOBJECT)(
138 _In_
140 _In_
141 WDFFILEOBJECT FileObject
142 );
143
147WdfFileObjectWdmGetFileObject(
148 _In_
149 WDFFILEOBJECT FileObject
150 )
151{
152 return ((PFN_WDFFILEOBJECTWDMGETFILEOBJECT) WdfFunctions[WdfFileObjectWdmGetFileObjectTableIndex])(WdfDriverGlobals, FileObject);
153}
154
155
156
157
158
159
160#endif // (NTDDI_VERSION >= NTDDI_WIN2K)
161
162
164
165#endif // _WDFFILEOBJECT_H_
166
#define _IRQL_requires_max_(irql)
Definition: driverspecs.h:230
UNICODE_STRING * PUNICODE_STRING
Definition: env_spec_w32.h:373
#define PASSIVE_LEVEL
Definition: env_spec_w32.h:693
#define DISPATCH_LEVEL
Definition: env_spec_w32.h:696
DriverGlobals
#define _In_
Definition: ms_sal.h:308
uint32_t ULONG
Definition: typedefs.h:59
#define STDCALL
Definition: wdf.h:45
#define WdfFunctions
Definition: wdf.h:66
_In_ WDFREQUEST _In_ WDFFILEOBJECT FileObject
Definition: wdfdevice.h:550
#define WDF_EXTERN_C_END
Definition: wdffileobject.h:42
#define WDF_EXTERN_C_START
Definition: wdffileobject.h:41
WDF_EXTERN_C_START typedef _In_ WDFFILEOBJECT FileObject
Definition: wdffileobject.h:67
PWDF_DRIVER_GLOBALS WdfDriverGlobals
@ WdfFileObjectGetDeviceTableIndex
Definition: wdffuncenum.h:164
@ WdfFileObjectGetFlagsTableIndex
Definition: wdffuncenum.h:163
@ WdfFileObjectGetFileNameTableIndex
Definition: wdffuncenum.h:162
@ WdfFileObjectWdmGetFileObjectTableIndex
Definition: wdffuncenum.h:165
#define WDFAPI
Definition: wdftypes.h:53
#define FORCEINLINE
Definition: wdftypes.h:67
* PFILE_OBJECT
Definition: iotypes.h:1998