IDirectMusicPort::Read
This method fills a buffer with incoming MIDI data. The method should be called with new buffer objects until no more data is available to be read.
HRESULT Read(
IDirectMusicBuffer* pBuffer
);
Parameters
- pBuffer
Address of a DirectMusicBuffer object to be filled with the incoming MIDI data.
Return Values
If the method succeeds, the return value is S_OK or S_FALSE.
If it fails, the method can return one of the following error values:
| E_POINTER |
| E_NOTIMPL |
Remarks
When there is no more data to read, the method returns S_FALSE.
Requirements
OS Versions: Windows CE .NET 4.0 and Windows CE .NET 4.1.
Header: Dmusicc.h.
Link Library: Dmusic.lib.
See Also
Last updated on Monday, April 12, 2004
© 1992-2002 Microsoft Corporation. All rights reserved.