Microsoft DirectX 9.0


This topic applies to Windows XP Service Pack 1 only.

The put_BlockedRatingAttributes method specifies whether to block content that has a specified rating.


HRESULT put_BlockedRatingAttributes(
  EnTvRat_System  enSystem,
  EnTvRat_GenericLevel  enLevel,
  LONG  lbfAttrs



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


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


[in]  Bitwise combination of zero or more flags from the BfEnTvRat_GenericAttributes enumeration. The flags specify 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
S_OK The method succeeded.


This method should be called once for each level in a rating system, to specify viewing permissions for that level. The lbfAttrs parameter indicates the permissions for the specified rating level:

For more information, see Setting Allowable Viewing Levels.

See Also