BPCVid.TSDeviceCount

[This is preliminary documentation and subject to change.]

The TSDeviceCount method returns the number of devices that support a specified tuning space.

Syntax

[ lCount = ] object.TSDeviceCount(lTuningSpace)
 

Parameters

object
Object expression that resolves to a BPCVid object.
lTuningSpace
Long that specifies the tuning space identifier. This identifier is the same value as that specified in the Guide database and/or the HKLM\Software\Microsoft\TV Services\Tuning Spaces\ registry key.

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

lCount
Long that indicates the number of devices.

Remarks

This method is implemented in the BPCVid object as a wrapper for the equivalent restricted method in the BPCDevices object. Applications should access this method through 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 method counts the number of devices that support the analog cable tuning space, such as an ATI All-in-Wonder tuner card. The number of devices is then stored in the variable numDevices.

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

QuickInfo

  Windows NT: Unsupported.
  Windows: Requires Windows 98.
  Windows CE: Unsupported.
  Header: Declared in vidsvr.odl.
  Import Library: Included as a resource in vid.ocx.
  Unicode: Yes.