21.2. The Event Log

Compatibility Note:The code in this section does not work in Windows 98 at the time of publication, due to unimplemented functions.

The event log centrally records error, warning, and information messages from the operating system, the security system, and applications. When you are developing your own software, you will want to use the event log to record certain types of error and warning information.

You do not need to throw all application errors into the event log. For example, if the user enters an invalid file name, you should display the appropriate error message to the user. However, if the application tries to allocate memory and cannot, you should advise the user and also insert a message in the event log. The administrator ...

Get Win32 System Services: The Heart of Windows® 98 and Windows® 2000 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.