|Microsoft DirectX 9.0|
The SetNotificationHandle method sets the event handle for notifications.
HRESULT SetNotificationHandle( HANDLE hNotification, REFERENCE_TIME rtMinimum );
Event handle created by CreateEvent, or 0 to clear out an existing handle.
Minimum time that the performance should hold onto old notify events before discarding them. The value 0 means to use the default minimum time of 20,000,000 reference time units, which is 2 seconds, or the previous value if this method has been called previously. If the application has not called GetNotificationPMsg by this time, the event is discarded to free the memory.
The method returns S_OK.
When the event is signaled, the application should call the IDirectMusicPerformance8::GetNotificationPMsg method to retrieve the notification event.
It is the application's responsibility to call the Win32 CloseHandle function on the notification handle when it is no longer needed.
Header: Declared in dmusici.h.