SetPassword (coredll)
Last changed: -64.199.116.42

.
Summary
This function sets the system password.

C# Signature:

[DllImportAttribute("coredll", EntryPoint = "SetPassword")]

[return: MarshalAsAttribute(UnmanagedType.Bool)]

public static extern bool SetPassword([MarshalAsAttribute(UnmanagedType.LPWStr)] StringBuilder lpszOldPassword, [MarshalAsAttribute(UnmanagedType.LPWStr)] StringBuilder lpszNewPassword);

VB Signature:

<DllImportAttribute("coredll", EntryPoint := "SetPassword")> _

Public Shared Function SetPassword(<MarshalAsAttribute(UnmanagedType.LPWStr)> lpszOldPassword As StringBuilder, <MarshalAsAttribute(UnmanagedType.LPWStr)> lpszNewPassword As StringBuilder) As<System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.Bool)> Boolean

User-Defined Types:

None.

Alternative Managed API:

Do you know one? Please contribute it!

Notes:

For a system starting with no password, pass null in for the lpszOldPassword parameter.

Tips & Tricks:

Please add some!

Sample Code:

Please add some!

Documentation