Before playing MIDI audio, you must determine the capabilities of the MIDI hardware that is present in the system. Use the following functions to get the number of MIDI devices and the capabilities of these devices:
midiInGetNumDevs
Retrieves the number of MIDI input devices present in the system.
midiInGetDevCaps
Retrieves the capabilities of a given MIDI input device.
midiOutGetNumDevs
Retrieves the number of MIDI output devices present in the system.
midiOutGetDevCaps
Retrieves the capabilities of a given MIDI output device.