reactos/sdk/include/wdf/kmdf/1.17/wdfglobals.h
Victor Perevertkin 40462c924e
[KMDF] Add Kernel-Mode Driver Framework headers v1.17
Taken from Microsoft GitHub repo:
d9c6040fe9

Licensed under MIT
2020-11-02 22:07:15 +03:00

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_