The midiInGetNumDevs function retrieves the number of MIDI input devices in the system.
UINT midiInGetNumDevs(VOID);
This function takes no parameters.
Returns the number of MIDI input devices present in the system. A return value of zero means that there are no devices (not that there is no error).
Windows NT: Requires version 3.1 or later.
Windows: Requires Windows 95 or later.
Windows CE: Unsupported.
Header: Declared in mmsystem.h.
Import Library: Use winmm.lib.
Musical Instrument Digital Interface (MIDI) Overview, MIDI Functions