midiInGetNumDevs  LB98.F 

The midiInGetNumDevs function retrieves the number of MIDI input devices in the system.

UINT midiInGetNumDevs(VOID);

Parameters

This function takes no parameters.

Return Values

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).