>>I want to use GetUserNameEx(), but I can't get it to return the users full name on NT or w2k.
>
>What error do you get?
>Take also look at
Determine A User's Full Name Thread #
577470 Message #
577901.
"ERROR_NONE_MAPPED" 1332
that is slow.. too slow to use on our servers in the application.
cName = space(100)
GetUserNameEx(1, @cName, 100) should work, but returns an error.
GetLastError() = 1332.
GetUserNameEx(2,@cname,100) is the only one that works, but that returns the login name, not the full name.