Platform SDK: Broadcast Architecture |
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)
HKLM\Software\Microsoft\TV Services\Tuning Spaces\
For example, the identifier 2 might represent the "Analog Broadcast TV from Antenna" tuning space.
Windows NT/2000: Unsupported.
Windows 95/98: Requires Windows 98.
Header: Declared in vidsvr.odl.
Import Library: Included as a resource in vid.ocx.
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)