|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 GetCountOfElementaryStreams method retrieves the number of elementary streams in a specified program.
HRESULT GetCountOfElementaryStreams( WORD wProgramNumber, WORD *pwVal );
[in] Specifies the program_number field for the program, as given in the PAT.
[out] Pointer to a variable that receives the number of elementary streams in the program.
The method returns an HRESULT value. Possible values include, but are not limited to, the values shown in the following table.
Use the GetRecordProgramNumber method to obtain the program number.