Summary

In this chapter you first saw how to use the EventLog class and other related types to work with the event log. Specifically, you learned how these types enable applications to enumerate the available event logs, create custom logs, write log entries, enumerate log entries, and even subscribe to the EntryWritten event in order to be notified asynchronously whenever a new log entry is added to a specified log. From there, you discovered the Process class and how it can be used to start, control, and stop new processes. You saw that it also allows us to wait for a process to exit and to check whether a process is still running or not. We can also handle the Exited event if we need to be asynchronously notified when a process terminates. ...

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.