IDvdInfo2::GetPlayerParentalLevel method
The GetPlayerParentalLevel method retrieves the current parental level and ISO 3166 country/region code settings for the DVD Navigator.
Syntax
HRESULT GetPlayerParentalLevel( [out] ULONG *pulParentalLevel, [out] BYTE pulCountryCode[2] );
Parameters
- pulParentalLevel [out]
-
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 value
Returns one of the following HRESULT values.
| Return code | Description |
|---|---|
|
Success. |
|
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.
Requirements
|
Minimum supported client |
Windows XP [desktop apps only] |
|---|---|
|
Minimum supported server |
Windows Server 2003 [desktop apps only] |
|
Header |
|
|
Library |
|
See also
- DVD Applications
- EC_DVD_PARENTAL_LEVEL_CHANGE
- Enforcing Parental Management Levels
- Error and Success Codes
- IDvdInfo2 Interface