mirror of
https://github.com/reactos/reactos.git
synced 2025-08-02 21:06:17 +00:00
[WDF] Add Windows Driver Framework files
Takern from Microsoft GitHub repo:
d9c6040fe9
Licensed under MIT
This commit is contained in:
parent
545df81502
commit
8a978a179f
475 changed files with 285099 additions and 0 deletions
|
@ -0,0 +1,71 @@
|
|||
//
|
||||
// Copyright (C) Microsoft. All rights reserved.
|
||||
//
|
||||
#ifndef __FX_LIBRARY_COMMON_H__
|
||||
#define __FX_LIBRARY_COMMON_H__
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif // __cplusplus
|
||||
|
||||
extern ULONG WdfLdrDbgPrintOn;
|
||||
extern PCHAR WdfLdrType;
|
||||
|
||||
extern WDFVERSION WdfVersion;
|
||||
|
||||
extern RTL_OSVERSIONINFOW gOsVersion;
|
||||
|
||||
#define _LIT_(a) # a
|
||||
#define LITERAL(a) _LIT_(a)
|
||||
|
||||
|
||||
|
||||
|
||||
#define __Print(_x_) \
|
||||
{ \
|
||||
if (WdfLdrDbgPrintOn) { \
|
||||
} \
|
||||
}
|
||||
|
||||
#define WDF_ENHANCED_VERIFIER_OPTIONS_VALUE_NAME L"EnhancedVerifierOptions"
|
||||
|
||||
typedef
|
||||
NTSTATUS
|
||||
(*PFN_RTL_GET_VERSION)(
|
||||
OUT PRTL_OSVERSIONINFOW VersionInformation
|
||||
);
|
||||
|
||||
NTSTATUS
|
||||
FxLibraryCommonCommission(
|
||||
VOID
|
||||
);
|
||||
|
||||
NTSTATUS
|
||||
FxLibraryCommonDecommission(
|
||||
VOID
|
||||
);
|
||||
|
||||
NTSTATUS
|
||||
FxLibraryCommonRegisterClient(
|
||||
PWDF_BIND_INFO Info,
|
||||
PWDF_DRIVER_GLOBALS * WdfDriverGlobals,
|
||||
PCLIENT_INFO ClientInfo
|
||||
);
|
||||
|
||||
NTSTATUS
|
||||
FxLibraryCommonUnregisterClient(
|
||||
PWDF_BIND_INFO Info,
|
||||
PWDF_DRIVER_GLOBALS WdfDriverGlobals
|
||||
);
|
||||
|
||||
VOID
|
||||
GetEnhancedVerifierOptions(
|
||||
PCLIENT_INFO ClientInfo,
|
||||
PULONG Options
|
||||
);
|
||||
|
||||
#ifdef __cplusplus
|
||||
} // extern "C"
|
||||
#endif // __cplusplus
|
||||
|
||||
#endif // __FX_LIBRARY_COMMON_H__
|
Loading…
Add table
Add a link
Reference in a new issue