ReactOS 0.4.15-dev-7924-g5949c20
wdffileobject_private.h
Go to the documentation of this file.
1/*++
2
3Copyright (c) Microsoft Corporation. All rights reserved.
4
5Module Name:
6
7 wdffileobject_private.h
8
9Abstract:
10
11 Defines private DDIs for WDF File Object
12
13Environment:
14
15 User mode
16
17Revision History:
18
19--*/
20
21#ifndef _WDFFILEOBJECT_PRIVATE_H_
22#define _WDFFILEOBJECT_PRIVATE_H_
23
24//
25// Interface available through WdfObjectQuery
26//
27// a4870f73-7c63-4e8d-ab57-ab191b522aca
28DEFINE_GUID(GUID_WDFP_FILEOBJECT_INTERFACE,
29 0xa4870f73, 0x7c63, 0x4e8d, 0xab, 0x57, 0xab, 0x19, 0x1b, 0x52, 0x2a, 0xca);
30
31typedef
35 _In_ WDFFILEOBJECT FileObject
36 );
37
38typedef
42 _In_ WDFFILEOBJECT FileObject
43 );
44
45//
46// Structure passed in by the driver and populated by WdfObjectQuery
47//
49
50 //
51 // Size of this structure in bytes
52 //
54
55 //
56 // Private DDIs exposed through WdfObjectQuery
57 //
60
63
65
66//
67// Used by a driver to initialize this structure
68//
69VOID
70__inline
72 _Out_ PWDFP_FILEOBJECT_INTERFACE FileObjectInterface
73 )
74{
75 RtlZeroMemory(FileObjectInterface, sizeof(WDFP_FILEOBJECT_INTERFACE));
76
77 FileObjectInterface->Size = sizeof(WDFP_FILEOBJECT_INTERFACE);
78}
79
80#endif // _WDFFILEOBJECT_PRIVATE_H_
#define NTSTATUS
Definition: precomp.h:21
#define _Out_
Definition: ms_sal.h:345
#define _In_
Definition: ms_sal.h:308
#define DEFINE_GUID(name, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8)
Definition: guiddef.h:68
PFN_WDFP_FILEOBJECT_DECREMENT_PROCESS_KEEP_ALIVE_COUNT WdfpFileObjectDecrementProcessKeepAliveCount
PFN_WDFP_FILEOBJECT_INCREMENT_PROCESS_KEEP_ALIVE_COUNT WdfpFileObjectIncrementProcessKeepAliveCount
#define RtlZeroMemory(Destination, Length)
Definition: typedefs.h:262
uint32_t ULONG
Definition: typedefs.h:59
_In_ WDFREQUEST _In_ WDFFILEOBJECT FileObject
Definition: wdfdevice.h:550
struct _WDFP_FILEOBJECT_INTERFACE WDFP_FILEOBJECT_INTERFACE
VOID __inline WDFP_FILEOBJECT_INTERFACE_INIT(_Out_ PWDFP_FILEOBJECT_INTERFACE FileObjectInterface)
NTSTATUS(* PFN_WDFP_FILEOBJECT_INCREMENT_PROCESS_KEEP_ALIVE_COUNT)(_In_ PWDF_DRIVER_GLOBALS WdfDriverGlobals, _In_ WDFFILEOBJECT FileObject)
struct _WDFP_FILEOBJECT_INTERFACE * PWDFP_FILEOBJECT_INTERFACE
NTSTATUS(* PFN_WDFP_FILEOBJECT_DECREMENT_PROCESS_KEEP_ALIVE_COUNT)(_In_ PWDF_DRIVER_GLOBALS WdfDriverGlobals, _In_ WDFFILEOBJECT FileObject)
PWDF_DRIVER_GLOBALS WdfDriverGlobals