|
midiInGetDevCaps
The midiInGetDevCaps function determines the capabilities of a specified MIDI input device.
MMRESULT midiInGetDevCaps(
UINT uDeviceID,
|
| LPMIDIINCAPS lpMidiInCaps,
|
| UINT cbMidiInCaps
|
| );
|
|
Parameters
uDeviceID
Identifier of the MIDI input device. The device identifier varies from zero to
one less than the number of devices present. This parameter can also be a
properly cast device handle.
lpMidiInCaps
Address of a MIDIINCAPS structure that is filled with information about the capabilities of the
device.
cbMidiInCaps
Size, in bytes, of the MIDIINCAPS structure. Only cbMidiInCaps bytes (or less) of information is copied to the location pointed to by lpMidiInCaps. If cbMidiInCaps is zero, nothing is copied, and the function returns MMSYSERR_NOERROR.
Return Values
Returns MMSYSERR_NOERROR if successful or an error otherwise. Possible error
values include the following:
MMSYSERR_BADDEVICEID
| The specified device identifier is out of range.
| MMSYSERR_INVALPARAM
| The specified pointer or structure is invalid.
| MMSYSERR_NODRIVER
| The driver is not installed.
| MMSYSERR_NOMEM
| The system is unable to allocate or lock memory.
|
Remarks
To determine the number of MIDI input devices present on the system, use the midiInGetNumDevs function.
See Also
MIDIINCAPS, midiInGetNumDevs
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
|