Microsoft KB Archive/262656

{|
 * width="100%"|

HOWTO: Change Network Passwords Under Windows 95 by Using PwdChangePassword in Visual Basic

 * }

Q262656

-

The information in this article applies to:


 * Microsoft Windows 95
 * Microsoft Windows 98

-

SUMMARY
This article describes how you can change network passwords under Windows 95/Windows 98 through the use of Microsoft Visual Basic.

MORE INFORMATION
You can use PwdChangePassword from Mpr.dll to change the network password under Windows 95 or Windows 98. If you call this API to change the password, a noncustomizable dialog box appears and prompts the user for password information.

The following sample code demonstrates how to call PwdChangePassword from Visual Basic 6.0 to change the password.

Example

 * 1) Start Visual Basic. From the File menu, choose New Project. Form1 is created by default.
 * 2) Add a Command button, Command1, to Form1.
 * 3) Add the following code to the General Declarations section of Form1:
 * 4) Run the application and click the Command1 button.