ReactOS 0.4.15-dev-8135-g1bc6c90
fxlibrarycommon.h
Go to the documentation of this file.
1//
2// Copyright (C) Microsoft. All rights reserved.
3//
4#ifndef __FX_LIBRARY_COMMON_H__
5#define __FX_LIBRARY_COMMON_H__
6
7#ifdef __cplusplus
8extern "C" {
9#endif // __cplusplus
10
12extern PCHAR WdfLdrType;
13
15
17
18#define _LIT_(a) # a
19#define LITERAL(a) _LIT_(a)
20
21#define __PrintUnfiltered(...) \
22 DbgPrintEx(DPFLTR_DEFAULT_ID, DPFLTR_ERROR_LEVEL, __VA_ARGS__);
23
24#define __Print(_x_) \
25{ \
26 if (WdfLdrDbgPrintOn) { \
27 DbgPrintEx(DPFLTR_DEFAULT_ID, DPFLTR_ERROR_LEVEL, "%s: ", WdfLdrType); \
28 __PrintUnfiltered _x_ \
29 } \
30}
31
32#define WDF_ENHANCED_VERIFIER_OPTIONS_VALUE_NAME L"EnhancedVerifierOptions"
33
34typedef
37 __out PRTL_OSVERSIONINFOW VersionInformation
38 );
39
43 VOID
44 );
45
49 VOID
50 );
51
58 );
59
65 );
66
67VOID
71 );
72
73VOID
77 __in NTSTATUS FinalStatus,
78 __in PWSTR ErrorInsertionString,
79 __in_bcount(RawDataLen) PVOID RawDataBuf,
80 __in USHORT RawDataLen
81);
82
83#ifdef __cplusplus
84} // extern "C"
85#endif // __cplusplus
86
87#endif // __FX_LIBRARY_COMMON_H__
LONG NTSTATUS
Definition: precomp.h:26
#define __in
Definition: dbghelp.h:35
#define __in_bcount(x)
Definition: dbghelp.h:41
#define __deref_out
Definition: dbghelp.h:26
#define __inout
Definition: dbghelp.h:50
#define __in_opt
Definition: dbghelp.h:38
#define __out
Definition: dbghelp.h:62
#define NTSTATUS
Definition: precomp.h:21
CLIENT_DATA ClientInfo
_Must_inspect_result_ NTSTATUS FxLibraryCommonRegisterClient(__inout PWDF_BIND_INFO Info, __deref_out PWDF_DRIVER_GLOBALS *WdfDriverGlobals, __in_opt PCLIENT_INFO ClientInfo)
_Must_inspect_result_ NTSTATUS FxLibraryCommonDecommission(VOID)
WDFVERSION WdfVersion
VOID LibraryLogEvent(__in PDRIVER_OBJECT DriverObject, __in NTSTATUS ErrorCode, __in NTSTATUS FinalStatus, __in PWSTR ErrorInsertionString, __in_bcount(RawDataLen) PVOID RawDataBuf, __in USHORT RawDataLen)
_Must_inspect_result_ NTSTATUS FxLibraryCommonCommission(VOID)
ULONG WdfLdrDbgPrintOn
Definition: version.cpp:106
RTL_OSVERSIONINFOW gOsVersion
Definition: version.cpp:104
PCHAR WdfLdrType
Definition: version.cpp:108
NTSTATUS(* PFN_RTL_GET_VERSION)(__out PRTL_OSVERSIONINFOW VersionInformation)
_Must_inspect_result_ NTSTATUS FxLibraryCommonUnregisterClient(__in PWDF_BIND_INFO Info, __in PWDF_DRIVER_GLOBALS WdfDriverGlobals)
VOID GetEnhancedVerifierOptions(__in PCLIENT_INFO ClientInfo, __out PULONG Options)
#define _Must_inspect_result_
Definition: ms_sal.h:558
_In_ NDIS_ERROR_CODE ErrorCode
Definition: ndis.h:4436
unsigned short USHORT
Definition: pedump.c:61
uint16_t * PWSTR
Definition: typedefs.h:56
uint32_t * PULONG
Definition: typedefs.h:59
uint32_t ULONG
Definition: typedefs.h:59
char * PCHAR
Definition: typedefs.h:51
_Must_inspect_result_ _In_ WDFCHILDLIST _In_ PWDF_CHILD_LIST_ITERATOR _Out_ WDFDEVICE _Inout_opt_ PWDF_CHILD_RETRIEVE_INFO Info
Definition: wdfchildlist.h:690
_In_ PWDFDEVICE_INIT _In_ PWDF_REMOVE_LOCK_OPTIONS Options
Definition: wdfdevice.h:3534
_Must_inspect_result_ _In_ PDRIVER_OBJECT DriverObject
Definition: wdfdriver.h:213
PWDF_DRIVER_GLOBALS WdfDriverGlobals