4. CHECKING THE HARDWARE STATUS
4.2 RAS Event Notification
4.2.1 Overview
When an event that must be reported to a user such as hardware failure occurs, this
function notifies the event to an application by setting an event object to the signaled state.
An application can detect an event such as hardware failure by monitoring when the event
object is set to the signaled state.
The event object is reset to the no signaled state when the cause of the event is cleared.
4.2.2 Detecting an event
Follow the procedure below to detect an event:
1. Use the OpenEvent Windows API function to get the handle to the event object.
Specify SYNCHRONIZE for the parameter dwDesiredAccess (the access to the event
object).
2. Use the WaitForSingleObject or WaitForMultipleObject Windows API function to
monitor when the event object is set to the signaled state.
4-14