Microsoft DirectX 9.0


The implementation of this method is provided as sample code with the DirectShow SDK. It is not a supported DirectShow API.

The GetCountOfPrograms method retrieves the number of programs in the transport stream.


HRESULT GetCountOfPrograms(
    int *pNumOfPrograms



[out]  Pointer to a variable that receives the number of programs.

Return Values

The method returns an HRESULT value. Possible values include, but are not limited to, the values shown in the following table.

Value Description
S_OK Success.

See Also