Microsoft DirectX 9.0


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


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



[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.


[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.


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

See Also