Platform SDK: Broadcast Architecture |
The MinMaxChannel method returns the numbers of the lowest and highest channels supported by a device. Visual Basic syntax is shown.
object.MinMaxChannel( lChannelMin, lChannelMax )
In the current version of Broadcast Architecture, MinMaxChannel only supports television tuners. If your application calls MinMaxChannel for another type of device, such as a satellite tuner card, the current implementation of MinMaxChannel returns an error code.
The minimum and maximum channels returned by this method are the same as the values returned by the IAMTVTuner::ChannelsMinMax method of DirectShow.
Windows NT/2000: Unsupported.
Windows 95/98: Requires Windows 98.
Header: Declared in vidsvr.odl.
Import Library: Included as a resource in vid.ocx.
BPCDeviceBase, BPCDeviceBase.ChannelAvailable, BPCVid.MinMaxChannel
The following example retrieves the minimum and maximum channel supported by the device identified by the tuning space identifier 3. These values are stored in the variables min
and max
.
Dim min As Long Dim max As Long vid.MinMaxChannel 3, min, max