The IDirectMusicPerformance::SetNotificationHandle method sets the event handle (created by the Win32® CreateEvent function) for notifications. The application should use the Win32 WaitForSingleObject function on this handle. When signaled, the application should call the IDirectMusicPerformance::GetNotificationPMsg method to retrieve the notification event.
HRESULT SetNotificationHandle(
HANDLE hNotification,
REFERENCE_TIME rtMinimum
);
The method returns S_OK.
It is the application's responsibility to call Win32 CloseHandle function on the notification handle when it is no longer needed.
Windows NT/2000: Requires Windows 2000.
Windows 95/98: Requires Windows 95 or later. Available as a redistributable for Windows 95.
Header: Declared in dmusici.h.