| Microsoft DirectX 8.1 (C++) | 
The WaitEvent method waits until the specified event is signaled.
Syntax
static HRESULT WaitEvent(
    HANDLE hEvent
);
Parameters
hEvent
Handle to an event.
Return Value
Returns an HRESULT value. Possible values include those shown in the following table.
| Value | Description | 
| S_OK | Success. | 
| E_UNEXPECTED | Unexpected error. | 
See Also