ChangePassword Method

[The feature associated with this page, DirectShow, is a legacy feature. It has been superseded by MediaPlayer, IMFMediaEngine, and Audio/Video Capture in Media Foundation. Those features have been optimized for Windows 10 and Windows 11. Microsoft strongly recommends that new code use MediaPlayer, IMFMediaEngine and Audio/Video Capture in Media Foundation instead of DirectShow, when possible. Microsoft suggests that existing code that uses the legacy APIs be rewritten to use the new APIs if possible.]

Note

This component is available for use in the Microsoft Windows 2000, Windows XP, and Windows Server 2003 operating systems. It may be altered or unavailable in subsequent versions.

 

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

        DVD.DVDAdm.ChangePassword(sUserName, sOld, sNew)

Parameters

sUserName

Specifies the current user's logon name as a String. The MSDVDAdm object ignores this parameter. See Remarks.

sOld

Specifies the user's old password as a String.

sNew

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

Return Value

No return value.

Remarks

Currently, the sUserName 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 group of relatives. 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.

See also

ConfirmPassword

MSDVDAdm Object