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);
Thats how im trying to convert variable SID to readable form. But i receive this error:
error C3861: 'ConvertSidToStringSid': identifier not found, even with argument-dependent lookup
Header file i've included. What else compiler wants ?