|Microsoft DirectX 9.0|
The GetGuideProgramIDs method returns a list of unique identifiers for all of the programs contained in all transport streams.
HRESULT GetGuideProgramIDs( IEnumVARIANT** ppEnumPrograms );
[out] Address of a variable that receives a pointer to the IEnumVARIANT interface. Use this interface to enumerate the collection. The caller must release the interface.
The method returns an HRESULT. Possible values include those in the following table.
|S_OK||The method succeeded.|
The method fails if the TIF has not received the program information from the PSI tables in the transport stream. The client should implement the IGuideDataEvent interface and wait for the IGuideDataEvent::ProgramChanged event to be fired.
Each VARIANT type in the collection contains a BSTR that uniquely identifies one program within the multiplex. To get more information about the program, pass the VARIANT to the IGuideData::GetProgramProperties method.
The returned IEnumVARIANT interface is not thread safe. Clients should not call methods on the interface from more than one thread.