Esempio n. 1
0
 public void SetPasswordHash(byte[] ntHash, byte[] lmHash = null)
 {
     Validator.AssertNotNull(ntHash, "ntHash");
     SamUserInternal1Information passwordInfo = new SamUserInternal1Information(ntHash);
     NtStatus result = NativeMethods.SamSetInformationUser(this.Handle, ref passwordInfo);
     Validator.AssertSuccess(result);
 }
Esempio n. 2
0
 internal static NtStatus SamSetInformationUser(SafeSamHandle userHandle, ref SamUserInternal1Information passwordInformation)
 {
     return(SamSetInformationUser(userHandle, SamUserInformationClass.Internal1Information, ref passwordInformation));
 }
Esempio n. 3
0
 private static extern NtStatus SamSetInformationUser(SafeSamHandle userHandle, SamUserInformationClass userInformationClass, [In] ref SamUserInternal1Information buffer);