[This is preliminary documentation and subject to change.]
The TracePrintfEx function outputs tracing information. TracePrintfEx differentiates itself from TracePrintf by offering extended options (Ex) implemented through non-zero dwFlags values. Output generated by TracePrintfEx includes up to the following: calling service or application's name, the current time, and tracing information in the format specified by the optional included in lpszFormat.
If dwFlags is zero, TracePrintfEx behaves exactly as TracePrintf.
DWORD TracePrintfEx(
IN DWORD dwTraceID,
IN DWORD dwFlags OPTIONAL,
IN LPCTSTR lpszFormat,
IN ... OPTIONAL
);
Successful execution of TracePrintfEx returns the number of characters output, excluding the terminating null-character.
Failure returns a zero. The error code can be retrieved by calling GetLastError.
Windows NT: Use version 5.0 and later.
Windows: Unsupported.
Windows CE: Unsupported.
Header: Declared in rtutils.h.
Import Library: Link with rtutils.lib.
TracePrintf, TraceRegisterEx, TraceDeregisterEx, TraceVprintfEx, TracePutsEx, TraceDumpEx, GetLastError