The midiInGetNumDevs function retrieves the number of MIDI input devices in the system.
UINT midiInGetNumDevs();
int midiInGetNumDevs() => _midiInGetNumDevs();