|Microsoft DirectX 9.0|
This topic applies to Windows XP Service Pack 1 only.
The ChangePassword method saves a new application password in the registry.
VidWebDVDAdm.ChangePassword( strUserName As String, strOld As String, strNew As String )
Specifies the current user's logon name as a String. This parameter is not currently implemented, so use an empty string (""). See Remarks.
Specifies the user's old password as a String.
Specifies the user's new password as a String. Cannot be an empty string.
This method does not return a value.
If the property fails, Err.Number may be set to one of the following values.
|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.|
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.
oVidWebDVDAdm.ChangePassword("", strOld, strNew)