Skip to main content
Enables or disables Event Tracing for Windows (ETW) tracing on Windows PC and XBOX consoles.

Syntax

Parameters

enabled   _In_
Type: bool
true to write libHttpClient trace messages to ETW; false to stop.

Return value

Type: void

Remarks

The first enable call registers the libHttpClient TraceLogging provider libHttpClient (GUID {2B6274B2-159F-4E6F-B800-0D17009E147A}); subsequent enable calls reuse the registration. libHttpClient writes each trace message as a libHttpClient_TraceMessage event with a Message field. Messages are written only while tracing is initialized and ETW output is enabled, and only when the message level is at or below the trace area verbosity. For more information, see HCSettingsSetTraceLevel.

Requirements

Header: trace.h Library: libHttpClient.lib Supported platforms: Windows, XBOX One family consoles and XBOX Series consoles

See also

trace
Last modified on October 30, 2026