title: How to use ETW from a C++ Windows client
body: <p>I'm researching <a href="https://docs.microsoft.com/en-us/windows-hardware/test/wpt/event-tracing-for-windows" rel="nofollow noreferrer">Event Tracing for Windows</a> (ETW) to allow a user-mode windows client to write out tracing information. The existing documentation is, to put it lightly, insanely incomplete. What would really help is a simple C++ example that writes out tracing messages using ETW. Does such an example exist? Is there other ETW documentation you might recommend?</p>