Platform SDK: Broadcast Architecture

BPCVid.MinMaxChannel

The MinMaxChannel method returns the lowest and highest channel numbers supported by the device corresponding to the specified tuning space. Visual Basic syntax is shown.

object.MinMaxChannel( lTuningSpace, lChannelMin, lChannelMax )

Parts

object
Object expression that resolves to a BPCVid or BPCDeviceBase object.
lTuningSpace
Long that specifies the tuning space identifier of the device. If the identified tuning space does not have a corresponding registry value, MinMaxChannel causes an incorrect parameter error.
lChannelMin
Long that receives the lowest channel number the device supports.
lChannelMax
Long that receives the highest channel number the device supports.

Remarks

In the current version of Broadcast Architecture, MinMaxChannel only supports television tuners. If your application calls MinMaxChannel and specifies another type of tuning space, such as for 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.MinMaxChannel, BPCVid

Examples

The following example retrieves the minimum and maximum channel supported by the tuning space identified by the number 3. These values are stored in the variables min and max.

Dim min As Long
Dim max As Long
vid.MinMaxChannel 3, min, max