How to use ETW from a C++ Windows client

前端 未结 2 1854
暖寄归人
暖寄归人 2021-02-04 07:14

I\'m researching Event Tracing for Windows (ETW) to allow a user-mode windows client to write out tracing information. The existing documentation is, to put it lightly, insanely

相关标签:
2条回答
  • 2021-02-04 07:19

    To write a Provider for ETW, you have two options:

    • write it as a manifest-based provider (preferred for Windows Vista or higher). Check out an example here.

    • write it as a classic provider for legacy support. You can find an example here.

    I suppose you want to use a manifest-based approach, as its better and can support up to eight sessions. The first step a manifest-based provider needs to do is to register the event using EventRegister() and then write to it via the EventWrite() or EventWriteString() function.

    0 讨论(0)
  • 2021-02-04 07:28

    Programmers Guide to Eventing (2010) from Microsoft is a good one to start with.

    0 讨论(0)
提交回复
热议问题