Drivers, like most Microsoft® Windows® system components, can log errors to the system event log. The errors are visible in the Event Viewer.
The Event Viewer Main Window
This section includes the following topics:
Writing to the System Event Log
Defining Custom Error Types
Registering as a Source of Error Messages