[DllImport("netapi32.dll", CharSet = CharSet.Unicode, SetLastError = true)] public static extern uint NetUserChangePassword( string DomainName, string UserName, string OldPassword, string NewPassword );
Microsoft documentation: Link
Last updated 1 year ago