DeviceGetCount Method (MItemClass)
returned value type
Possible values:
type of the device
Possible values:
number of the devices or parameters
Get the devices or properties count.
Syntax
Public Overridable Sub DeviceGetCount( _
   ByVal _bTypesEnum As Integer, _
   ByVal _bsType As String, _
   ByRef _pnCount As Integer _
) 
public virtual void DeviceGetCount( 
   int _bTypesEnum,
   string _bsType,
   out int _pnCount
)
public procedure DeviceGetCount( 
    _bTypesEnum: Integer;
    _bsType: String;
   Out  _pnCount: Integer
); virtual; 
public: virtual void DeviceGetCount( 
   int _bTypesEnum,
   BSTR* _bsType,
   [PARAMFLAG::Out] int _pnCount
) 

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)
_pnCount
number of the devices or parameters
Example
Dim nCount As Integer
m_pDevice.DeviceGetCount(0, "renderer", nCount)
int nCount;
m_pDevice.DeviceGetCount( 0, "renderer", out nCount);
nCount: integer;

m_pDevice.DeviceGetCount( 0, 'renderer', nCount);
See Also

Reference

MItemClass Class
MItemClass Members