开发者

write application event information with Win32 API

.NET provides EventLog class that be able to write application event information to a particular log on开发者_JS百科 the system. Is there simliar Win32 API that can be called with C++?


Yes. It's documented in the Event Logging section on MSDN.

http://msdn.microsoft.com/en-us/library/aa363652%28VS.85%29.aspx


I think you want Event Tracing for Windows: http://msdn.microsoft.com/en-us/library/bb968803(VS.85).aspx


That would be the Windows Event Logging API for Vista and later: http://msdn.microsoft.com/en-us/library/aa385780%28VS.85%29.aspx

Or for pre-Vista, you want the just-plain Event Logging API: http://msdn.microsoft.com/en-us/library/aa363652%28VS.85%29.aspx

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜