Yigang Wu
Yigang Wu

Reputation: 3592

write application event information with Win32 API

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

Upvotes: 2

Views: 710

Answers (3)

richb
richb

Reputation: 4906

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

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

Upvotes: 1

Will
Will

Reputation: 5537

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

Upvotes: 0

Skeets
Skeets

Reputation: 1292

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

Upvotes: 0

Related Questions