IDirectMusicPort::SetReadNotificationHandle

This method specifies an event that is to be set when MIDI messages are available to be read with the IDirectMusicPort::Read method. The event is signaled whenever new data is available. To turn off event notification, call SetReadNotificationHandle with a NULL value for the hEvent parameter.

HRESULT SetReadNotificationHandle(
  HANDLE hEvent
);

Parameters

  • hEvent
    Event handle obtained from a call to the Win32 CreateEvent function. It is the application's responsibility to close this handle once the port has been released.

Return Values

The method returns S_OK.

Requirements

OS Versions: Windows CE .NET 4.0 and Windows CE .NET 4.1.
Header: Dmusicc.h.
Link Library: Dmusic.lib.

See Also

Capturing Music | IDirectMusicPort::Read

 Last updated on Monday, April 12, 2004

© 1992-2002 Microsoft Corporation. All rights reserved.