Microsoft DirectX 9.0

MSVidCtl.InputsAvailable

This topic applies to Windows XP only.

The InputsAvailable property retrieves the input devices that are available within a specified category.

Syntax

objMSVidCtl.InputsAvailable(
    CategoryGuid As String
) As MSVidInputDevices

Parameters

  strCategoryGuid

Specifies a GUID that identifies the device category to enumerate. Supported categories include the following:

Value Description
{71985F4B-1CA1-11d3-9CC8-00C04F7971E0} BDA-compatible tuner devices
{a799a800-a46d-11d0-a18c-00a02401dcd4} Non-BDA analog tuner devices.
{00000000-0000-0000-0000-000000000000} Miscellaneous input devices (file playback, DVD).

Error Codes

If the property fails, an error is raised and Err.Number is set to a value other than zero.

Return Values

Returns a read-only MSVidInputDevices collection.

Remarks

This property is read-only.

Example Code

Const clsidAnalogTuners = "{a799a800-a46d-11d0-a18c-00a02401dcd4}"
Dim objTuner As MSVidAnalogTunerDevice
For Each objTuner in VideoControl.InputsAvailable(clsidAnalogTuners)
    List1.AddItem objTuner.Name
Next

See Also