IEvalRat::get_BlockedRatingAttributes method (tvratings.h)

[The feature associated with this page, Microsoft TV Technologies, is a legacy feature. Microsoft strongly recommends that new code does not use this feature.]

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

Syntax

HRESULT get_BlockedRatingAttributes(
  [in]          EnTvRat_System       enSystem,
  [in]          EnTvRat_GenericLevel enLevel,
  [out, retval] LONG                 *plbfAttrs
);

Parameters

[in] enSystem

Specifies the rating system, as an EnTvRat_System enumeration type.

[in] enLevel

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

[out, retval] 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 value

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

Return code 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

Requirement Value
Minimum supported client Windows�XP with SP1 [desktop apps only]
Minimum supported server None supported
Target Platform Windows
Header tvratings.h

See also

IEvalRat Interface

IEvalRat::put_BlockedRatingAttributes