Sample Event Trace Provider

Updated: April 25, 2005

ETWProvider.exe

ETWProvider is a user-mode event provider that uses the Event Tracing for Windows (ETW) APIs and demonstrates how to log developer-defined events. Its provider GUID is FDAF6C10-8530-4e23-9D28-715CB763768E. The provider GUID is used by a trace controller such as Tracelog (also included in the WinHEC CD). ETWProvider logs four event types. The event descriptions are provided in MyEvents.mof, which must be registered to decode the events. To register the MOF descriptions on Windows XP and later, use mofcomp.exe with the command-line %windir%\system32\wbem\mofcomp.exe MyEvents.mof. After ETWProvider is stopped by the controller, it unregisters itself and terminates. To decode the events from the log file, use TraceRpt.exe, which is available in %windir%\system32.

Tracelog.exe

Tracelog is a command-line event tracing controller which is shipped with the DDK and included here for convenience. Tracelog can be used to start and stop tracing sessions, including the Kernel and Global sessions. Tracelog can be used to enumerate and configure ETW providers. For more information, see Tracelog Basics on MSDN.

*

Please read the license agreement before continuing.

    Shared Source License for ETWProvider.exe

This license governs use of the accompanying software ("Software"), and your use of the Software constitutes acceptance of this license.

You may use the Software for any commercial or noncommercial purpose, including distributing derivative works.

In return, we simply require that you agree:

1. Not to remove any copyright or other notices from the Software.

2. That if you distribute the Software in source code form you do so only under this license (i.e. you must include a complete copy of this license with your distribution), and if you distribute the Software solely in object form you only do so under a license that complies with this license.

3. That the Software comes "as is", with no warranties. None whatsoever. This means no express, implied or statutory warranty, including without limitation, warranties of merchantability or fitness for a particular purpose or any warranty of title or non-infringement. Also, you must pass this disclaimer on whenever you distribute the Software or derivative works.

4. That neither Microsoft nor any contributor to the Software will be liable for any of those types of damages known as indirect, special, consequential, or incidental related to the Software or this license, to the maximum extent the law permits, no matter what legal theory it’s based on. Also, you must pass this limitation of liability on whenever you distribute the Software or derivative works.

5. That if you sue anyone over patents that you think may apply to the Software for a person's use of the Software, your license to the Software ends automatically.

6. That the patent rights, if any, granted in this license only apply to the Software, not to any derivative works you make.

7. That the Software is subject to U.S. export jurisdiction at the time it is licensed to you, and it may be subject to additional export or import laws in other places.  You agree to comply with all such laws and regulations that may apply to the Software after delivery of the software to you.

8. That if you are an agency of the U.S. Government, (i) Software provided pursuant to a solicitation issued on or after December 1, 1995, is provided with the commercial license rights set forth in this license, and (ii) Software provided pursuant to a solicitation issued prior to December 1, 1995, is provided with “Restricted Rights” as set forth in FAR, 48 C.F.R. 52.227-14 (June 1987) or DFAR, 48 C.F.R. 252.227-7013 (Oct 1988), as applicable.

9. That your rights under this License end automatically if you breach it in any way.

10. That all rights not expressly granted to you in this license are reserved.


Top of pageTop of page