Share via


MSVidWebDVD.AcceptParentalLevelChange Method

 
Microsoft DirectShow 9.0

MSVidWebDVD.AcceptParentalLevelChange Method

This topic applies to Windows XP Service Pack 1 or later.

The AcceptParentalLevelChange method accepts or rejects a newly posted temporary parental management level.

Syntax

  VidWebDVD
  .AcceptParentalLevelChange(
  bAccept As Boolean,
  strUserName As String,
  strPassword As String
)

Parameters

bAccept

Boolean value indicating whether or not to accept newly posted level.

strUserName

Specifies a user name. This parameter is currently ignored, so use an empty string ("").

strPassword

Specifies the user's password.

Return Values

This method does not return a value.

Error Codes

If the property fails, Err.Number may be set to one of the following values.

Value Description
E_UNEXPECTED Unspecified error; possibly the graph has not been built.
VFW_E_DVD_INVALIDDOMAIN The DVD Navigator filter is not in the title domain.
E_ACCESSDENIED Incorrect password.

Remarks

If the NotifyParentalLevelChange property has been set to True, the player will send an EC_DVD_PARENTAL_LEVEL_CHANGE message when it encounters a new parental management level more restrictive than the preceding one, and wait for AcceptParentalLevelChange to be called, to accept or reject continued playback or branch to another, possibly less restrictive, level. If NotifyParentalLevelChange has been set to False, the message will still be sent, but playback will not be stopped.

Example

  oVidWebDVD
  .AcceptParentalLevelChange(True, "", strPassword)

Valid Domains

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
None All

Requirements

Reference: Add a reference to MS Video Control 1.0 Type Library and Microsoft Tuner 1.0 Type Library.

Library: Quartz.dll.

See Also