Hi, How do I get the user info from AD using C++ (VS6)? I used GetUserName to get it but it wont be correct when people create a local account and login . Please advice.
C++
Last Comment
Kevin Stanush
8/22/2022 - Mon
evilrix
Tried GetUserNameEx?
Shanmugam Rajagopal
ASKER
GetUserNameEx will not return Active Directory user it returns local user. AD has to be retrieved thru Kerberos tocken for the user.
evilrix
Fair enough. It was just a suggestion as I was on my phone at the time. I'm sorry, I don't have a definitive answer but there are plenty of Windows specialist programmers who might. I'll ping jkr and see if he can help you.