[This is preliminary documentation and subject to change.]
The GetCurrentTuningInfo method returns information about the channel to which WebTV for Windows is currently tuned.
HRESULT GetCurrentTuningInfo(
long *lTuningSpace,
long *lChannelNumber,
long *IVideoStream,
long *lAudioStream,
BSTR *pbsIPAddress
);
This parameter must be initialized to NULL when you pass it; 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.
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::GetPreviousTuningInfo, ITVViewer::Tune