|
midiInPrepareHeader
The midiInPrepareHeader function prepares a buffer for MIDI input.
MMRESULT midiInPrepareHeader(
HMIDIIN hMidiIn,
|
| LPMIDIHDR lpMidiInHdr,
|
| UINT cbMidiInHdr
|
| );
|
|
Parameters
hMidiIn
Handle of the MIDI input device.
lpMidiInHdr
Address of a MIDIHDR structure that identifies the buffer to be prepared.
cbMidiInHdr
Size, in bytes, of the MIDIHDR structure.
Return Values
Returns MMSYSERR_NOERROR if successful or an error otherwise. Possible error
values include the following:
MMSYSERR_INVALHANDLE
| The specified device handle is invalid.
| MMSYSERR_INVALPARAM
| The specified address is invalid.
| MMSYSERR_NOMEM
| The system is unable to allocate or lock memory.
|
Remarks
Preparing a header that has already been prepared has no effect, and the
function returns zero.
Before using this function, you must set the lpData, dwBufferLength, and dwFlags members of the MIDIHDR structure. The dwFlags member must be set to zero.
See Also
MIDIHDR
Related Links
Software for Delphi and C++ Builder developers
Software for Visual Studio .NET developers
Software for Visual Basic 6 developers
Delphi Tips&Tricks
MegaDetailed.NET
TMS Scripter Studio Pro components for Delphi/C++Builder
More Online Helps
Win32 Programmer's Reference (win32.hlp)
OLE Programmer's Reference (ole.hlp)
Microsoft Windows Pen API Programmer's Reference (penapi.hlp)
Microsoft Windows Sockets 2 Reference (sock2.hlp)
Microsoft Windows Telephony API (TAPI) Programmer's Reference (tapi.hlp)
Unix Manual Pages
|