Microsoft DirectX 9.0

IXDSCodec::GetContentAdvisoryRating

This topic applies to Windows XP Service Pack 1 only.

The GetContentAdvisoryRating method retrieves the most recent ratings information parsed by the XDSToRat object.

Syntax

HRESULT GetContentAdvisoryRating(
    PackedTvRating  *pRat
    long  *pPktSeqID
    long  *pCallSeqID
    REFERENCE_TIME  *pTimeStart
    REFERENCE_TIME  *pTimeEnd
);

Parameters

pRat

[out]  Pointer to a variable that receives the most recent rating. The rating is packed into a format that is used internally by the XDS Codec filter, Encrypter/Tagger filter, and Decrypter/Detagger filter. It is not intended for use by other objects.

pPktSeqID

[out]  Pointer to a variable that receives the number of ratings packets that have been decoded. This information can be used for diagnostic purposes.

pCallSeqID

[out]  Pointer to a variable that receives the number of times this method has been called for the current ratings packet. This information can be used for diagnostic purposes.

pTimeStart

[out]  Pointer to a variable that receives the start time of the sample that completed the ratings packet.

pTimeEnd

[out]  Pointer to a variable that receives the stop time of the sample that completed the ratings packet.

Return Values

Returns an HRESULT value. Possible values include those in the following table.

Value Description
E_POINTER NULL pointer argument
S_OK Success

See Also