ReactOS  0.4.15-dev-3163-gf17c2c0
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
8 extern "C" {
9 #endif // __cplusplus
10 
11 extern ULONG WdfLdrDbgPrintOn;
12 extern PCHAR WdfLdrType;
13 
14 extern WDFVERSION WdfVersion;
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 
34 typedef
37  __out PRTL_OSVERSIONINFOW VersionInformation
38  );
39 
43  VOID
44  );
45 
49  VOID
50  );
51 
58  );
59 
65  );
66 
67 VOID
71  );
72 
73 VOID
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__
signed char * PCHAR
Definition: retypes.h:7
#define __in_bcount(x)
Definition: dbghelp.h:41
NTSTATUS(* PFN_RTL_GET_VERSION)(__out PRTL_OSVERSIONINFOW VersionInformation)
RTL_OSVERSIONINFOW gOsVersion
Definition: version.cpp:104
_In_ NDIS_ERROR_CODE ErrorCode
Definition: ndis.h:4436
_Must_inspect_result_ NTSTATUS FxLibraryCommonCommission(VOID)
#define __in_opt
Definition: dbghelp.h:38
uint16_t * PWSTR
Definition: typedefs.h:56
_Must_inspect_result_ NTSTATUS FxLibraryCommonRegisterClient(__inout PWDF_BIND_INFO Info, __deref_out PWDF_DRIVER_GLOBALS *WdfDriverGlobals, __in_opt PCLIENT_INFO ClientInfo)
LONG NTSTATUS
Definition: precomp.h:26
_Must_inspect_result_ _In_ WDFCHILDLIST _In_ PWDF_CHILD_LIST_ITERATOR _Out_ WDFDEVICE _Inout_opt_ PWDF_CHILD_RETRIEVE_INFO Info
Definition: wdfchildlist.h:683
CLIENT_DATA ClientInfo
VOID LibraryLogEvent(__in PDRIVER_OBJECT DriverObject, __in NTSTATUS ErrorCode, __in NTSTATUS FinalStatus, __in PWSTR ErrorInsertionString, __in_bcount(RawDataLen) PVOID RawDataBuf, __in USHORT RawDataLen)
#define __out
Definition: dbghelp.h:62
_Must_inspect_result_ NTSTATUS FxLibraryCommonUnregisterClient(__in PWDF_BIND_INFO Info, __in PWDF_DRIVER_GLOBALS WdfDriverGlobals)
_Must_inspect_result_ _In_ PDRIVER_OBJECT DriverObject
Definition: wdfdriver.h:213
PWDF_DRIVER_GLOBALS WdfDriverGlobals
_Must_inspect_result_ NTSTATUS FxLibraryCommonDecommission(VOID)
_In_ PWDFDEVICE_INIT _In_ PWDF_REMOVE_LOCK_OPTIONS Options
Definition: wdfdevice.h:3531
VOID GetEnhancedVerifierOptions(__in PCLIENT_INFO ClientInfo, __out PULONG Options)
#define NTSTATUS
Definition: precomp.h:20
#define __inout
Definition: dbghelp.h:50
#define _Must_inspect_result_
Definition: ms_sal.h:558
unsigned short USHORT
Definition: pedump.c:61
unsigned int * PULONG
Definition: retypes.h:1
PCHAR WdfLdrType
Definition: version.cpp:108
#define __deref_out
Definition: dbghelp.h:26
unsigned int ULONG
Definition: retypes.h:1
ULONG WdfLdrDbgPrintOn
Definition: version.cpp:106
#define __in
Definition: dbghelp.h:35
WDFVERSION WdfVersion