mirror of
https://github.com/reactos/reactos.git
synced 2024-10-31 03:48:17 +00:00
40462c924e
Taken from Microsoft GitHub repo:
d9c6040fe9
Licensed under MIT
86 lines
1.6 KiB
C
86 lines
1.6 KiB
C
/*++
|
|
|
|
Copyright (c) Microsoft Corporation
|
|
|
|
Module Name:
|
|
|
|
WdfGlobals.h
|
|
|
|
Abstract:
|
|
|
|
This module contains globals definitions for the frameworks.
|
|
|
|
Environment:
|
|
|
|
kernel mode only
|
|
|
|
Revision History:
|
|
|
|
|
|
--*/
|
|
|
|
//
|
|
// NOTE: This header is generated by stubwork. Please make any
|
|
// modifications to the corresponding template files
|
|
// (.x or .y) and use stubwork to regenerate the header
|
|
//
|
|
|
|
#ifndef _WDFGLOBALS_H_
|
|
#define _WDFGLOBALS_H_
|
|
|
|
#ifndef WDF_EXTERN_C
|
|
#ifdef __cplusplus
|
|
#define WDF_EXTERN_C extern "C"
|
|
#define WDF_EXTERN_C_START extern "C" {
|
|
#define WDF_EXTERN_C_END }
|
|
#else
|
|
#define WDF_EXTERN_C
|
|
#define WDF_EXTERN_C_START
|
|
#define WDF_EXTERN_C_END
|
|
#endif
|
|
#endif
|
|
|
|
WDF_EXTERN_C_START
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#define WDF_DRIVER_GLOBALS_NAME_LEN (32)
|
|
|
|
typedef struct _WDF_DRIVER_GLOBALS {
|
|
|
|
// backpointer to the handle for this driver
|
|
WDFDRIVER Driver;
|
|
|
|
// Flags indicated by the driver during create
|
|
ULONG DriverFlags;
|
|
|
|
// Tag generated by WDF for the driver. Tag used by allocations made on
|
|
// behalf of the driver by WDF.
|
|
ULONG DriverTag;
|
|
|
|
CHAR DriverName[WDF_DRIVER_GLOBALS_NAME_LEN];
|
|
|
|
// If TRUE, the stub code will capture DriverObject->DriverUnload and insert
|
|
// itself first in the unload chain. If FALSE, DriverUnload is left alone
|
|
// (but WDF will not be notified of unload and there will be no auto cleanup).
|
|
BOOLEAN DisplaceDriverUnload;
|
|
|
|
} WDF_DRIVER_GLOBALS, *PWDF_DRIVER_GLOBALS;
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
WDF_EXTERN_C_END
|
|
|
|
#endif // _WDFGLOBALS_H_
|
|
|