ReactOS  0.4.15-dev-2704-gd5265b0
wdfglobals.h
Go to the documentation of this file.
1 /*++
2 
3 Copyright (c) Microsoft Corporation
4 
5 Module Name:
6 
7  WdfGlobals.h
8 
9 Abstract:
10 
11  This module contains globals definitions for the frameworks.
12 
13 Environment:
14 
15  kernel mode only
16 
17 Revision History:
18 
19 
20 --*/
21 
22 //
23 // NOTE: This header is generated by stubwork. Please make any
24 // modifications to the corresponding template files
25 // (.x or .y) and use stubwork to regenerate the header
26 //
27 
28 #ifndef _WDFGLOBALS_H_
29 #define _WDFGLOBALS_H_
30 
31 #ifndef WDF_EXTERN_C
32  #ifdef __cplusplus
33  #define WDF_EXTERN_C extern "C"
34  #define WDF_EXTERN_C_START extern "C" {
35  #define WDF_EXTERN_C_END }
36  #else
37  #define WDF_EXTERN_C
38  #define WDF_EXTERN_C_START
39  #define WDF_EXTERN_C_END
40  #endif
41 #endif
42 
44 
45 
46 
47 #ifdef __cplusplus
48 extern "C" {
49 #endif
50 
51 #define WDF_DRIVER_GLOBALS_NAME_LEN (32)
52 
53 typedef struct _WDF_DRIVER_GLOBALS {
54 
55  // backpointer to the handle for this driver
56  WDFDRIVER Driver;
57 
58  // Flags indicated by the driver during create
60 
61  // Tag generated by WDF for the driver. Tag used by allocations made on
62  // behalf of the driver by WDF.
64 
66 
67  // If TRUE, the stub code will capture DriverObject->DriverUnload and insert
68  // itself first in the unload chain. If FALSE, DriverUnload is left alone
69  // (but WDF will not be notified of unload and there will be no auto cleanup).
71 
73 
74 
75 
76 
77 
78 #ifdef __cplusplus
79 }
80 #endif
81 
83 
84 #endif // _WDFGLOBALS_H_
85 
char CHAR
Definition: xmlstorage.h:175
BOOLEAN DisplaceDriverUnload
Definition: wdfglobals.h:70
#define WDF_EXTERN_C_END
Definition: wdfglobals.h:39
unsigned char BOOLEAN
struct _WDF_DRIVER_GLOBALS * PWDF_DRIVER_GLOBALS
struct _WDF_DRIVER_GLOBALS WDF_DRIVER_GLOBALS
CHAR DriverName[WDF_DRIVER_GLOBALS_NAME_LEN]
Definition: wdfglobals.h:65
unsigned int ULONG
Definition: retypes.h:1
WDFDRIVER Driver
Definition: wdfglobals.h:56
#define WDF_DRIVER_GLOBALS_NAME_LEN
Definition: wdfglobals.h:51
#define WDF_EXTERN_C_START
Definition: wdfglobals.h:38