26#if FX_CORE_MODE==FX_CORE_USER_MODE
30#if !defined(EVENT_TRACING)
32#if DBG && defined(__REACTOS__)
39FxTraceGetTypeConversion(
43 if (TypeLength == 2 &&
strncmp(TypeName,
"wZ", 2) == 0)
46 if (TypeLength == 4 &&
strncmp(TypeName,
"GUID", 4) == 0)
49 if (TypeLength == 4 &&
strncmp(TypeName,
"FUNC", 4) == 0)
52 if (TypeLength == 7 &&
strncmp(TypeName,
"BOOLEAN", 7) == 0)
64FxTraceTranslateFormat(
80 if (outIndex + 2 >= OutputSize)
93 conversion = FxTraceGetTypeConversion(
Format + 2,
95 convLength =
strlen(conversion);
98 if (outIndex + convLength >= OutputSize)
102 outIndex += convLength;
146#define TEMP_BUFFER_SIZE 1024
150#define FORMAT_BUFFER_SIZE 512
160 FxTraceTranslateFormat(DebugMessage,
162 sizeof(formatBuffer));
170#if FX_CORE_MODE==FX_CORE_KERNEL_MODE
172 sizeof(debugMessageBuffer),
182 sizeof(debugMessageBuffer),
206#if FX_CORE_MODE==FX_CORE_KERNEL_MODE
223 ((DebugPrintFlag &
DebugFlag) == DebugPrintFlag))) {
224#if FX_CORE_MODE==FX_CORE_KERNEL_MODE
225 DbgPrint(
"WDFTrace: %s\n", debugMessageBuffer);
VOID __cdecl DoTraceLevelMessage(__in PVOID FxDriverGlobals, __in ULONG DebugPrintLevel, __in ULONG DebugPrintFlag, __drv_formatString(FormatMessage) __in PCSTR DebugMessage,...)
#define NT_SUCCESS(StatCode)
_ACRTIMP char *__cdecl strchr(const char *, int)
_ACRTIMP size_t __cdecl strlen(const char *)
_ACRTIMP int __cdecl strncmp(const char *, const char *, size_t)
#define __drv_formatString(kind)
NTSTATUS WinErrorToNtStatus(__in ULONG WinError)
#define FORMAT_BUFFER_SIZE
#define _Out_writes_z_(s)
#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 STATUS_BUFFER_OVERFLOW
#define TRACE_LEVEL_ERROR
STRSAFEAPI StringCbVPrintfA(STRSAFE_LPSTR pszDest, size_t cbDest, STRSAFE_LPCSTR pszFormat, va_list argList)
#define RtlCopyMemory(Destination, Source, Length)
#define STATUS_UNSUCCESSFUL
#define OutputDebugString
#define HRESULT_FACILITY(hr)