Windows-classic-samples/Samples/EventTracingEnumerateProviders
2025-11-28 00:35:46 +09:00
..
new
2025-11-28 00:35:46 +09:00
new
2025-11-28 00:35:46 +09:00
new
2025-11-28 00:35:46 +09:00
new
2025-11-28 00:35:46 +09:00
new
2025-11-28 00:35:46 +09:00

page_type, languages, products, name, urlFragment, description, extendedZipContent
page_type languages products name urlFragment description extendedZipContent
sample
cpp
windows-api-win32
Event tracing provider enumeration eventtracing-enumerateproviders Enumerates providers that have registered Event Tracing for Windows (ETW) decoding information
path target
LICENSE LICENSE

Event tracing provider enumeration sample

This sample demonstrates how to get information about the providers that have registered ETW decoding information on the system. This sample uses the TdhEnumerateProviders and TdhEnumerateProvidersForDecodingSource APIs.

Prerequisites

  • TdhEnumerateProviders requires Windows Vista or later.
  • TdhEnumerateProvidersForDecodingSource requires Windows 10 build 20348 or higher.
  • This sample requires the Windows Software Development Kit.

Sample language implementations

C++

To build the sample using Visual Studio (preferred method):

 1. Open File Explorer and navigate to the directory.
 2. Double-click the icon for the .sln (solution) file to open the file in
 Visual Studio.
 3. In the Build menu, select Build Solution. The application will be
 built in the default \Debug or \Release directory.

To run the sample:

 1. Press F5 in Visual Studio or later.