DeviceGetByIndex Method (IMDevice)
returned value type
Possible values:
type of the device
Possible values:
index of the device
name of the device or its type
XML description of the device
Gets the device name or device properties by its index.
Syntax
Sub DeviceGetByIndex( _
   ByVal _bTypesEnum As Integer, _
   ByVal _bsType As String, _
   ByVal _nIndex As Integer, _
   ByRef _pbsNameOrType As String, _
   ByRef _pbsXMLDesc As String _
) 
procedure DeviceGetByIndex( 
    _bTypesEnum: Integer;
    _bsType: String;
    _nIndex: Integer;
   Out  _pbsNameOrType: String;
   Out  _pbsXMLDesc: String
); 
void DeviceGetByIndex( 
   int _bTypesEnum,
   BSTR* _bsType,
   int _nIndex,
   [PARAMFLAG::Out] BSTR* _pbsNameOrType,
   [PARAMFLAG::Out] BSTR* _pbsXMLDesc
) 

Parameters

_bTypesEnum
returned value type
Possible values:
  • 0 - method returns current device name or it property.
  • 1 - method returns available device types that can be passed to _bsType parameter.
_bsType
type of the device
Possible values:
  • "video" - currently set video device
  • "video::line-in" - currently set input line of video device
  • "audio" - currently set audio device
  • "audio::line-in" - currently set input line of audio device
  • "renderer" - currently set renderer
  • "renderer::line-out" - currently set renderer output line
  • "renderer::keying" - currently set keying state value
  • "renderer::line-in" - currently set renderer input like (for keying)
_nIndex
index of the device
_pbsNameOrType
name of the device or its type
_pbsXMLDesc
XML description of the device
Example
Dim strNameOrType As String
Dim strXMLDesc As String
m_pDevice.DeviceGetByIndex(0, "renderer", 0, strNameOrType, strXMLDesc)
string strNameOrType;
string strXMLDesc;
m_pDevice.DeviceGetByIndex(0, "renderer", 0, out strNameOrType, out strXMLDesc);
strNameOrType, strXMLDesc: string;

m_pDevice.DeviceGetByIndex(0, 'renderer', 0, strNameOrType, strXMLDesc);
See Also

Reference

IMDevice Interface
IMDevice Members