CodePudding user response:
I always use LogonUser function, 0 x52e error, this is what causes,The domain name test.com, aa, user password Jlxe! 1, the code is as follows:
if (LogonUser (" aa ", "test.com", "Jlxe! 1, "LOGON32_LOGON_INTERACTIVE LOGON32_PROVIDER_DEFAULT, & amp; HUser))
{
MessageBox (" OK ");
}
The else
{
DwError=GetLastError ();
}
Finally, dwError=0 x52e
Ask what causes this?
CodePudding user response:
See if this has enlightenment ADSI interface to get the AD domain server account list/vc + +CodePudding user response:
You use so there must be some problems, according to the MSDn, username must be a UnicodeThe username
Pointer to a string containing the name of the user account on which the to return information
You use the Unicode compiled, string, meanwhile, combined with _T try (,,,,,,);