Thats how im trying to convert variable SID to readable form. But i receive this error:Code:#include <sddl.h> //... DWORD dwUserBuf = 256; char chCurrentUser[256] = {0}; GetUserName(chCurrentUser, &dwUserBuf); SID userSID; DWORD dwSID; char *chSID; LookupAccountName(NULL, chCurrentUser, &userSID, &dwSID, NULL, NULL, NULL); ConvertSidToStringSid(&userSID, chSID);
Header file i've included. What else compiler wants ?error C3861: 'ConvertSidToStringSid': identifier not found, even with argument-dependent lookup




Reply With Quote