Microsoft DirectX 9.0

IMpeg2PsiParser::GetPmtVersionNumber

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

The GetPmtVersionNumber method retrieves the version_number field from a specified PMT. The version number is incremented whenever the definition of the program changes.

Syntax

HRESULT GetPmtVersionNumber(
    WORD wProgramNumber,
    BYTE *pPmtVersion
);

Parameters

wProgramNumber

[in]  Specifies the program_number field of the program, as given in the PAT.

pPmtVersion

[out]  Pointer to a variable that receives the version_number field.

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.

Remarks

Use the GetRecordProgramNumber method to obtain the program number.

See Also