Microsoft DirectX 9.0

IDvdInfo2::GetPlayerParentalLevel

The GetPlayerParentalLevel method retrieves the current parental level and ISO 3166 country/region code settings for the DVD Navigator.

Syntax

HRESULT GetPlayerParentalLevel(
  ULONG *pulParentalLevel,
  BYTE pulCountryCode[2]
);

Parameters

pulParentalLevel

[out] Pointer to a variable of type ULONG that receives a value indicating the current parental level. Valid parental levels are 1 through 8 if parental management is enabled, 0xFFFFFFFF if parental management is disabled.

pulCountryCode

[out] Address of a two-byte array that receives the current country/region code (ISO 3166 Alpha-2 Code).

Return Values

Returns one of the following HRESULT values.

Return code Description
S_OK Success.
E_POINTER A parameter is invalid.

Remarks

Parental management is disabled by default in the DVD Navigator. This method is demonstrated in the DVDSample application in CDvdCore::GetParentalLevel.

See Also