I am trying to use the GetUserNameEx function, and my code compiles, but when I build it, I get this error:
Cpp1.obj : error LNK2001: unresolved external symbol "unsigned char __stdcall GetUserNameExA(enum EXTENDED_NAME_FORMAT,char *,unsigned long *)" (?GetUserNameExA@@YGEW4EXTENDED_NAME_FORMAT@@PADPA K@Z)
Release/Cpp1.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
Am I missing a library?
Does anyone have any suggestions?