|Microsoft DirectX 9.0|
This topic applies to Windows XP Service Pack 1 only.
The GetCurrRating method retrieves the current rating, based on the most recent media sample.
HRESULT GetCurrRating( EnTvRat_System *pEnSystem EnTvRat_GenericLevel *pEnRating LONG *plbfEnAttr );
[out] Pointer to a variable that receives the rating system, as an EnTvRat_System enumeration type.
[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.
[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.
Returns S_OK if successful, or an error code otherwise.