Copyright © 2001-2018 MultiMedia Soft

MIDI.InputDevicesEnum method

Previous pageReturn to chapter overviewNext page



Enumerates MIDI input devices installed inside the system.

Information about each detected MIDI input device can be obtained through the MIDI.InputDevicesInfoGet method.


Before being used for detecting incoming MIDI events, each MIDI input device must be started through the MIDI.InputDevicesStart method or through the MIDI.InputDevicesStartOnPlayer method.


For further details about the use of MIDI protocol see the MIDI object section and the How to deal with MIDI protocol tutorial.





[Visual Basic]

control.MIDI.InputDevicesEnum (

nCount as Integer

) as enumErrorCodes



short control.MIDI.InputDevicesEnum (

short *nCount








Reference that, on return from the method call, will contain the number of detected MIDI input devices.



Return value






Negative value

An error occurred, check the LastError property value in order to get the error code

enumErrorCodes.ERR_NOERROR (0)

The method call was successful