如果你在上述一些链接中点上,可能会发现两个改进之处,即:新的 http://msdn.microsoft.com/en-us/library/system.diagnostics.eventing.eventprovider.aspx” rel=“nofollow”
活动提供人可以听从追踪系统(如任何其他追踪器)和将追踪信息传送到ETW系统。
活动主持人班子允许你直接向ETW系统发出信号。
These classes are only available on Vista and higher (actually, they are "available" in the .NET framework 4.0 on whatever level of OS you are using, but they don t work on XP and lower).
I have not used either of these classes (nor have I used ETW), but it looks to me like they make it a lot easier to use ETW from .NET applications. If you want to use ETW you still have some work ahead of you to get ETW itself configured.
Here is an article that describes how to use ETW. I am not sure if there is more current information about ETW or not. Note that this article was written before the new .NET ETW classes became available.