MidiDevices.InfoGet method |
|
Remarks
After completing the enumeration of MIDI devices installed inside the system, started through the MidiDevices.CountGet method, allows retrieving information about a specific MIDI device.
For further details about the use of MIDI devices see the MidiDevices object section and the How to manage MIDI devices tutorial.
Syntax
[Visual Basic] control.MidiDevices.InfoGet ( bInput as enumBoolean, nDeviceIndex as Integer, nInfoStringType as enumInfoStringType, nVendorId as Long, nProductId as Long ) as String |
[C++] BSTR control.MidiDevices.InfoGet ( short bInput, short nDeviceIndex, short nInfoStringType, long *nVendorId, long *nProductId ); |
Parameter |
Description |
||||||||||||
|
|
||||||||||||
bInput |
Boolean value that specifies if the info request is related to an input or an output device. Supported values are the following:
|
||||||||||||
nDeviceIndex |
Number representing the zero-based index of the MIDI device. The number of available MIDI devices installed inside the system can be obtained through the MidiDevices.CountGet method. |
||||||||||||
nInfoStringType |
Specifies the type of information string we want to obtain. Supported values are the following:
|
||||||||||||
nVendorId |
Reference that, on return from the method call, will contain the number representing the vendor's (manufacturer) identifier (also known as VID or MID) for the MIDI device. The list of known identifiers can be found inside the MSDN website |
||||||||||||
nProductId |
Reference that, on return from the method call, will contain the number representing the product's identifier (also known as PID) for the MIDI device. The list of known identifiers can be found inside the MSDN website |
Return value
Value |
Meaning |
|
|
Empty string |
An error occurred (see the LastError property for further error details) |
Valid string |
String containing the requested information. |