Copyright © 2005-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 MIDIMan class section and the How to deal with MIDI protocol tutorial.





[Visual Basic]

Public Function InputDevicesEnum (

ByRef nCount as Int16

) as enumErrorCodes



public enumErrorCodes InputDevicesEnum (

ref Int16 nCount




public: enumErrorCodes InputDevicesEnum (

Int16 __gc *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 (see the LastError property for further error details)

enumErrorCodes.NOERROR (0)

The method call was successful.