Platform SDK: Broadcast Architecture

BPCDeviceBase.MinMaxChannel

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 )

Parts

object
Object expression that resolves to a BPCDeviceBase object.
lChannelMin
Long that receives the number of the lowest channel the device supports.
lChannelMax
Long that receives the number of the highest channel the device supports.

Remarks

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.

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

BPCDeviceBase, BPCDeviceBase.ChannelAvailable, BPCVid.MinMaxChannel

Examples

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