[This is preliminary documentation and subject to change.]
The TuningSpaceNumberFromName method maps a user-readable string naming a tuning space (for example, "Cable" or "Broadcast") to the numeric identifier for that tuning space in the Guide database.
HRESULT TuningSpaceNumberFromName(
BSTR Name, // in
long * plRetVal // out
);
Returns an HRESULT indicating success or failure. If the method succeeds, it returns S_OK. Otherwise, it returns an error code. For specific error codes, see the Winerror.h and Dbdaoerr.h header files. For more information about Winerror.h and Dbdaoerr.h, see Further Information on Television Services for the Client.
Windows NT: Unsupported.
Windows: Requires Windows 98.
Windows CE: Unsupported.
Header: Declared in tssadmin.odl.
Import Library: Included as a resource in tssadmin.dll.
Unicode: Yes.
ITelevisionServices::TuningSpaceNameFromNumber