#define SECURITY_WIN32 //#define and #include order shud not be changed
#include <Security.h> // Needed for GetUserNameEx function

#pragma comment(lib, "Secur32.lib")


Above should be the...