[This is preliminary documentation and subject to change.]
The GetPreviousTuningInfo method returns information about the channel to which WebTV for Windows was previously tuned.
HRESULT GetPreviousTuningInfo(
long *lTuningSpace,
long *lChannelNumber,
long *IVideoStream,
long *lAudioStream,
BSTR *pbsIPAddress
);
This parameter must be initialized to NULL when you pass it to the method; otherwise. the method returns an OLE exception.
Returns an HRESULT indicating success or failure. If the method succeeds it returns S_OK. Otherwise it returns an error code. For specific error code values see Winerror.h.
This method only returns information about the single channel tuned to just previous to the current channel. It cannot be used to retrieve information about channels tuned to before that.
Windows NT: Unsupported.
Windows: Requires Windows 98.
Windows CE: Unsupported.
Header: Declared in tvdisp.odl.
Import Library: Included as a resource in tvx.exe.
Unicode: Yes.
ITVViewer::GetCurrentTuningInfo, ITVViewer::Tune