Platform SDK: Broadcast Architecture

BPCVid.TSDeviceCount

The TSDeviceCount method returns the number of devices that support a specified tuning space for the Video control. Visual Basic syntax is shown.

[ lCount = ] object.TSDeviceCount(lTuningSpace)

Parts

object
Object expression that resolves to a BPCVid object.
lTuningSpace
Long that specifies the tuning space identifier. This identifier is the same as specified in this registry key:

HKLM\Software\Microsoft\TV Services\Tuning Spaces\

For example, the identifier 2 might represent the "Analog Broadcast TV from Antenna" tuning space.

lCount
Long that indicates the number of devices that support the tuning space.

Requirements

  Windows NT/2000: Unsupported.
  Windows 95/98: Requires Windows 98.
  Header: Declared in vidsvr.odl.
  Import Library: Included as a resource in vid.ocx.

See Also

BPCDevices, BPCVid

Examples

In the following example, 3 is the identifier for the "Analog Cable TV" tuning space and vid is an instance of the Video control. The call to TSDeviceCount counts the number of devices that support the analog cable tuning space; for example, an ATI All-in-Wonder tuner card might support this space. The example then stores the number of devices in the variable numDevices.

Dim numDevices As Long
numDevices = vid.TSDeviceCount(3)