Introduction

At first glance the subjects of the event log, process control, and benchmarking don't seem to have all that much in common, but they do all fit within the umbrella of diagnostics. Not so coincidentally, the types that support these topics are all defined in the System::Diagnostics. If you have ever used the Win32 API to access and modify the event log—along with message files and the message compiler—you'll really appreciate the first section of this chapter as I'll illustrate how the EventLog class (and related classes) make this task so much easier than ever before. In fact, not only will you learn the common operations of enumerating event logs, creating custom logs, writing event entries, and enumerating log entries, but you'll ...

Get Extending MFC Applications with the .NET Framework now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.