NetUserChangePassword 1351 error issue and NetUserSetInfo(with DPAPI) inquiry

56 Views Asked by At

This is a Windows Login UI dll project made in C++.

A problem occurs if you forcefully change the password using NetUserSetInfo and then log in.

An error occurs in a program that encrypts and decrypts using DPAPI.

I thought there would be no problem if I changed NetUserSetInfo 1003 to NetUserChangePassword.

Even when using it before logging in, error 1351 occurs.

I want to know why the error occurs and how to work around it.

Run CMD on the login screen and confirm password change using NetUserSetInfo.

Run CMD on the log screen and check that error 1351 has occurred using NetUserChangePassword.

I searched to know the inside of NetUserSetInfo and NetUserChangePassword functions.

Find out why encryption and decryption is not possible with SetInfo but possible with ChangePassword.

0

There are 0 best solutions below