Group: Windows Multimedia - Library: winmm
Enumerating MIDI output devices
How to play MIDI notes
UINT midiOutGetNumDevs(VOID);
DECLARE INTEGER midiOutGetNumDevs IN Winmm
This function takes no parameters.
Returns the number of MIDI output devices. A return value of zero means that there are no devices (not that there is no error).