IMSVidCtl::get__InputsAvailable

 
Microsoft DirectShow 9.0

IMSVidCtl::get__InputsAvailable

This topic applies to Windows XP or later.

The get__InputsAvailable method retrieves the input devices that are available in a specified category.

Syntax

  HRESULT get__InputsAvailable(
  
  const GUID*
  
  CategoryGuid
  ,
  
  IMSVidInputDevices**
  
  pVal
  
  );

Parameters

  CategoryGuid

[in]  Pointer to a GUID that specifies the category to enumerate. Supported categories include the following.

Value Description
KSCATEGORY_BDA_NETWORK_PROVIDER BDA-compatible tuner devices.
KSCATEGORY_TVTUNER Non-BDA analog tuner devices.
GUID_NULL Miscellaneous devices (file source, DVD).

  ppVal

[out]  Address of a variable that receives an IMSVidInputDevices interface pointer.

Return Values

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

This method returns a read-only collection of input devices. Use the returned IMSVidInputDevices pointer to enumerate the collection.

If the method succeeds, the IMSVidInputDevices interface has an outstanding reference count. The caller must release the interface.

Example Code

The following example enumerates the available BDA-compatible tuners and retrieves their friendly names.

  

Requirements

  Header: Dshow.h.

  Library: Quartz.dll.

See Also