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.
Syntax
HRESULT put_BlockedRatingAttributes(
EnTvRat_System enSystem,
EnTvRat_GenericLevel enLevel,
LONG lbfAttrs
);
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.
lbfAttrs
[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. |
Remarks
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