Export (0) Print
Expand All

IDvdControl2::SelectParentalLevel method

The SelectParentalLevel method sets the parental access level for the logged-on user.

Syntax


HRESULT SelectParentalLevel(
  ULONG ulParentalLevel
);

Parameters

ulParentalLevel

Value that specifies the parental access level for the current user. For details, see Remarks.

Return value

Returns one of the following values.

Return codeDescription
S_OK

Success.

E_INVALIDARG

Invalid argument.

VFW_E_DVD_INVALIDDOMAIN

Invalid domain.

 

Remarks

There are eight generic parental levels defined in the DVD specification, numbered from 1 (most restrictive) through 8 (least restrictive). The meaning of these levels varies from region to region and depends on the current country/region (see IDvdControl2::SelectParentalCountry). For the United States and Canada (DVD Region 1), the suggested values are as follows:

Parental level Meaning
1The rating is G, general.
3The rating is PG, parental guidance suggested.
4The rating is PG-13, parental guidance suggested, not recommended for those under 13.
6The rating is R, restricted.
7The rating is NC-17, not appropriate for those under 17.

 

This method sets the current user's access level; this access level determines what content the user can play. Higher levels can play lower-level content; lower levels can't play higher-level content. In other words, adults can watch child-safe content, but children can't watch adult content.

DVD player applications can enforce restrictions on the parental level setting, such as providing password protection for raising the current parental level. The application's user interface should have a way to set the level and to disable checking completely. Some discs might be authored to disallow even level 8, meaning that no level is valid and no one could watch the disc if parental management is enabled. On such discs, parental management must be disabled for the discs to be viewed. Parental management in the DVD Navigator filter is disabled by default.

To disable parental management after it has been enabled, pass 0xffffffff for ulParentalLevel.

This method is demonstrated in the DVDSample application in CDvdCore::SetParentalLevel.

The following table shows the Annex J command name to which this method name corresponds, and the domains in which this method is valid.

Annex J Command Name Valid Domains
Parental_Level_SelectDVD_DOMAIN_Stop

 

Requirements

Minimum supported client

Windows XP [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

Strmif.h (include Dshow.h)

Library

Strmiids.lib

See also

DVD Applications
Error and Success Codes
IDvdControl2 Interface

 

 

Community Additions

ADD
Show:
© 2014 Microsoft