Home | History | Annotate | Download | only in Windows

Lines Matching defs:pSid

11 bool MyLookupAccountSid(LPCTSTR systemName, PSID sid,

41 static void MyLookupSids(CPolicy &policy, PSID ps)
56 PSID Sid,
64 static PSID GetSid(LPWSTR accountName)
87 PSID pSid = ::HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sidLen);
95 (NULL, accountName, pSid, &sidLen, domainName, &domainLen, &sidNameUse);
98 return pSid;
130 PSID psid = GetSid(userName);
131 if (psid == NULL)
138 NTSTATUS status = policy.EnumerateAccountRights(psid, &userRightsArray, &countOfRights);
169 NTSTATUS status = policy.AddAccountRights(psid, &userRights);
174 HeapFree(GetProcessHeap(), 0, psid);