IEvalRat::get_BlockedRatingAttributes

 
Microsoft DirectShow 9.0

IEvalRat::get_BlockedRatingAttributes

This topic applies to Windows XP Service Pack 1 or later.

The get_BlockedRatingAttributes method determines whether content is blocked for a given rating system and rating level.

Syntax

  HRESULT get_BlockedRatingAttributes(
  EnTvRat_System  enSystem,
  EnTvRat_GenericLevel  enLevel,
  LONG*  plbfAttrs
);

Parameters

enSystem

[in]  Specifies the rating system, as an EnTvRat_System enumeration type.

enLevel

[in]  Specifies the rating level, as an EnTvRat_GenericLevel enumeration type. The meaning of this value depends on the rating system.

plbfAttrs

[out, retval]  Receives a bitwise combination of flags from the BfEnTvRat_GenericAttributes enumeration. The flags indicate whether the overall rating is blocked, or specific attributes within the rating are blocked.

Return Values

The method returns an HRESULT. Possible values include those in the following table.

Value Description
E_INVALIDARG Invalid argument.
E_POINTER NULL pointer argument.
S_OK The method succeeded.

Remarks

If the BfIsBlocked flag is set, all content with the specified rating level will be blocked. If one of the BfIsAttr_X ** flags is set, any content with that rating level and attribute will be blocked.

Requirements

Header: Tvratings.h.

See Also