IDTFilter::GetCurrRating
Microsoft DirectShow 9.0 |
IDTFilter::GetCurrRating
This topic applies to Windows XP Service Pack 1 or later.
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] Receives the rating system, as an EnTvRat_System enumeration type.
pEnRating
[out] Receives the rating level, as an EnTvRat_GenericLevel enumeration type. The meaning of this value depends on the rating system.
plbfEnAttr
[out] 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.
Requirements
Header: EncDec.h.
See Also