[This is preliminary documentation and subject to change.]
The TracePutsEx function is an efficient way to retrieve information associated with a registered service or application's identifier (dwTraceID). TracePutsEx differs from TracePuts in its extended (Ex) flexibility with regard to output, achieved through the use of non-zero flags implemented with dwFlags. TracePutsEx also outputs the string literal passed as the function's second argument.
DWORD TracePutsEx(
IN DWORD dwTraceID,
IN DWORD dwFlags OPTIONAL,
IN LPCTSTR lpszString
);
Successful execution of TracePuts returns the number of characters output, excluding the terminating null-character.
Otherwise, TracePuts returns zero. Call GetLastError to get the error code.
Windows NT: Use version 5.0 and later.
Windows: Unsupported.
Windows CE: Unsupported.
Header: Declared in rtutils.h.
Import Library: Link with rtutils.lib.
TracePuts, TraceRegisterEx, TraceDeregisterEx, TracePrintfEx, TraceVprintfEx, TraceDumpEx, GetLastError