Поделиться через


MSVidWebDVD.SelectParentalCountry Method

 
Microsoft DirectShow 9.0

MSVidWebDVD.SelectParentalCountry Method

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

The SelectParentalCountry method sets the specified parental country/region for subsequent playback.

Syntax

  VidWebDVD
  .SelectParentalCountry(
  lCountry As Long,
  strUserName As String,
  strPassword As String
)

Parameters

lCountry

Long specifying the country/region.

strUserName

String specifying the current user. This parameter is currently ignored, so use an empty string ("").

strPassword

String specifying the application 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.
E_INVALIDARG Country/region value is invalid.
VFW_E_DVD_INVALIDDOMAIN Invalid domain for this method.
E_ACCESSDENIED Incorrect password.

Remarks

The parental country/region determines how the parental levels are interpreted.

Example

  oVidWebDVD
  .SelectParentalCountry(
  lCountry
  , "", 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
Parental_Country_Select DVD_DOMAIN_Stop

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