MidiDevices.InfoGetByUniqueId 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 ClassMidiDevices class section and the How to manage MIDI devices tutorial.
Syntax
[Visual Basic] MidiDevices.MidiDevices.InfoGetByUniqueId ( bInput as Boolean, nDeviceUniqueId as Int16, nInfoStringType as enumInfoStringType, ByRef nVendorId as Int32, ByRef nProductId as Int32 ) as String |
[C#] public string MidiDevices.InfoGetByUniqueId ( bool bInput, Int16 nDeviceUniqueId, Int16 nInfoStringType, ref Int32 nVendorId, ref Int32 nProductId ); |
[C++] public: string MidiDevices.InfoGetByUniqueId ( bool bInput, Int16 nDeviceUniqueId, Int16 nInfoStringType, Int32 __gc *nVendorId, Int32 __gc *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:
|
||||||||||||
nDeviceUniqueId |
The unique identifier of the MIDI output device returned by a previous call to the MidiDevices.Open 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. |