Share via


MSVidWebDVDAdm.ChangePassword Method

 
Microsoft DirectShow 9.0

MSVidWebDVDAdm.ChangePassword Method

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

The ChangePassword method saves a new application password in the registry.

Syntax

  VidWebDVDAdm
  .ChangePassword(
  strUserName As String,
  strOld As String,
  strNew As String
)

Parameters

strUserName

Specifies the current user's logon name as a String. This parameter is not currently implemented, so use an empty string (""). See Remarks.

strOld

Specifies the user's old password as a String.

strNew

Specifies the user's new password as a String. Cannot be an empty string.

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 Invalid new password entered; probably too long.
E_ACCESSDENIED Permission to change password could not be verified.
E_OUTOFMEMORY Not enough memory to complete the task.

Remarks

Currently, the strUserName parameter is ignored on this and all related methods. This means that whoever knows the password can set the parental level. There is only one password and one parental level for the application. There is no support for individual user logon names or multiple password management. To enforce parental management levels, parents should set the password and then set the parental level appropriate for younger members of the family. When parents want to view a disc with adult-rated content, they can change the level, and then change it back when they are done viewing. As long as the children do not know the password, they can only watch content at or below the level set for them.

Example

  oVidWebDVDAdm
  .ChangePassword(
  ""
  , strOld, strNew)

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