BYTE sidbuf[SECURITY_MAX_SID_SIZE]; PSID sid = (PSID)sidbuf; if (GetAccountSidFromName(L"Sasha", sid, sizeof(sidbuf)))