DeviceGet Method (MFLiveClass)
device type
index of selected device
name of the device
Gets the current device of a selected type
Syntax
Public Overridable Sub DeviceGet( _
   ByVal _eDevType As eMFDeviceType, _
   ByRef _pnIndex As Integer, _
   ByRef _pbsName As String _
) 
public virtual void DeviceGet( 
   eMFDeviceType _eDevType,
   out int _pnIndex,
   out string _pbsName
)
public procedure DeviceGet( 
    _eDevType: eMFDeviceType;
   Out  _pnIndex: Integer;
   Out  _pbsName: String
); virtual; 
public: virtual void DeviceGet( 
   eMFDeviceType _eDevType,
   [PARAMFLAG::Out] int _pnIndex,
   [PARAMFLAG::Out] BSTR* _pbsName
) 

Parameters

_eDevType
device type
_pnIndex
index of selected device
_pbsName
name of the device
Example

Here is example of how to get a current device:

m_objLive = new MFLiveClass();
// work with the live source
// ...
//
// Get current device
int devIndex;
string devName;
m_objLive.DevideGet(eMFDeviceType.eMFDT_Video, out devIndex, out devName);
See Also

Reference

MFLiveClass Class
MFLiveClass Members