Microsoft DirectX 9.0

IDTFilter::GetCurrRating

This topic applies to Windows XP Service Pack 1 only.

The GetCurrRating method retrieves the current rating, based on the most recent media sample.

Syntax

HRESULT GetCurrRating(
    EnTvRat_System  *pEnSystem
    EnTvRat_GenericLevel  *pEnRating
    LONG  *plbfEnAttr
);

Parameters

pEnSystem

[out]  Pointer to a variable that receives the rating system, as an EnTvRat_System enumeration type.

pEnRating

[out]  Pointer to a variable that receives the rating level, as an EnTvRat_GenericLevel enumeration type. The meaning of this value depends on the rating system.

plbfEnAttr

[out]  Pointer to a variable that receives a bitwise combination of flags from the BfEnTvRat_GenericAttributes enumeration. The flags specify content attributes, such as violence or adult language. Content attributes do not apply to all rating systems.

Return Values

Returns S_OK if successful, or an error code otherwise.

See Also