58 {
59#if DBG
61
62#define TEMP_BUFFER_SIZE 1024
66
68
69 if (DebugMessage) {
70
71
72
73
74
75
76#if FX_CORE_MODE==FX_CORE_KERNEL_MODE
78 sizeof(debugMessageBuffer),
79 DebugMessage,
81#else
84 sizeof(debugMessageBuffer),
85 DebugMessage,
87
88
90 {
92 }
93 else
94 {
96 }
97#endif
99
100#if FX_CORE_MODE==FX_CORE_KERNEL_MODE
102#else
105#endif
106 return;
107 }
110 ((DebugPrintFlag &
DebugFlag) == DebugPrintFlag))) {
111#if FX_CORE_MODE==FX_CORE_KERNEL_MODE
112 DbgPrint(
"WDFTrace: %s\n", debugMessageBuffer);
113#else
116#endif
117 }
118 }
120
121 return;
122#else
127#endif
128}
#define NT_SUCCESS(StatCode)
NTSTATUS WinErrorToNtStatus(__in ULONG WinError)
#define UNREFERENCED_PARAMETER(P)
NTSTRSAFEAPI RtlStringCbVPrintfA(_Out_writes_bytes_(cbDest) _Always_(_Post_z_) NTSTRSAFE_PSTR pszDest, _In_ size_t cbDest, _In_ _Printf_format_string_ NTSTRSAFE_PCSTR pszFormat, _In_ va_list argList)
#define TRACE_LEVEL_ERROR
STRSAFEAPI StringCbVPrintfA(STRSAFE_LPSTR pszDest, size_t cbDest, STRSAFE_LPCSTR pszFormat, va_list argList)
#define STATUS_UNSUCCESSFUL
#define OutputDebugString
#define HRESULT_FACILITY(hr)