C++ – LookupAccountName fails on vista with ERROR_NONE_MAPPED

cwinapiwindows-vista

I'm trying to call LookupAccountName on Vista – it always fails with the error ERROR_NONE_MAPPED.

What could be the reason??

Thanks!!

Best Answer

ERROR_NONE_MAPPED typeically means that the username you provided is not available in the format you specified.