WMEncoder.DeviceControlPluginInfoManager
The DeviceControlPluginInfoManager property retrieves a collection of objects that contain device control plug-in information.
Syntax
IWMEncDeviceControlPluginInfoManager = WMEncoder.DeviceControlPluginInfoManager
Parameters
This property takes no parameters.
Property Value
An IWMEncDeviceControlPluginInfoManager object containing the plug-in information.
Remarks
This property is read-only.
Example Code
' Declare variables.
Dim sDeviceString As String
Dim i As Integer, j As Integer, z As Integer
' Create a WMEncoder object.
Dim Encoder As WMEncoder
Set Encoder = New WMEncoder
' Retrieve a device control plug-in info manager object from WMEncoder.
Dim DCPlugMgr As IWMEncDeviceControlPluginInfoManager
Dim PlugInfo As IWMEncPluginInfo
Set DCPlugMgr = Encoder.DeviceControlPluginInfoManager
' Loop through the connected digital devices on the system such as DV cameras and VTRs.
For i = 0 To DCPlugMgr.Count - 1
' Set the IWMEncPluginInfo object to the current plug-in.
Set PlugInfo = DCPlugMgr.Item(i)
' Find the first device plug-in that support resources.
If PlugInfo.SchemeType = "DeviceControl" And PlugInfo.Resources = True Then
' Loop through the resources in the current plug-in and retrieve the name.
For j = 0 To PlugInfo.Count - 1
sDeviceString = PlugInfo.Item(j)
z = 1
Exit For
Next j
End If
If z = 1 Then Exit For
Next i
Requirements
Reference: Windows Media Encoder
Library: wmenc.exe
See Also