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 43 WDF_EXTERN_C_START 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 59 ULONG DriverFlags; 60 61 // Tag generated by WDF for the driver. Tag used by allocations made on 62 // behalf of the driver by WDF. 63 ULONG DriverTag; 64 65 CHAR DriverName[WDF_DRIVER_GLOBALS_NAME_LEN]; 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). 70 BOOLEAN DisplaceDriverUnload; 71 72 } WDF_DRIVER_GLOBALS, *PWDF_DRIVER_GLOBALS; 73 74 75 76 77 78 #ifdef __cplusplus 79 } 80 #endif 81 82 WDF_EXTERN_C_END 83 84 #endif // _WDFGLOBALS_H_ 85 86