Lines Matching refs:_handle
15 HANDLE _handle; variable
17 CAccessToken(): _handle(NULL) {}; in CAccessToken()
21 if (_handle == NULL) in Close()
23 bool res = BOOLToBool(::CloseHandle(_handle)); in Close()
25 _handle = NULL; in Close()
32 return BOOLToBool(::OpenProcessToken(processHandle, desiredAccess, &_handle)); in OpenProcessToken()
45 { return BOOLToBool(::AdjustTokenPrivileges(_handle, BoolToBOOL(disableAllPrivileges), in AdjustPrivileges()
68 LSA_HANDLE _handle;
73 operator LSA_HANDLE() const { return _handle; } in LSA_HANDLE()
74 CPolicy(): _handle(NULL) in CPolicy()
100 (systemName, objectAttributes, desiredAccess, &_handle); in Open()
105 if (_handle == NULL) in Close()
122 (_handle); in Close()
123 _handle = NULL; in Close()
129 …{ return LsaEnumerateAccountsWithUserRight(_handle, userRights, (void **)enumerationBuffer, countR… in EnumerateAccountsWithUserRight()
132 { return ::LsaEnumerateAccountRights(_handle, sid, userRights, countOfRights); } in EnumerateAccountRights()
136 { return LsaLookupSids(_handle, count, sids, referencedDomains, names); } in LookupSids()
154 (_handle, accountSid, userRights, countOfRights); in AddAccountRights()
160 …{ return LsaRemoveAccountRights(_handle, accountSid, (BOOLEAN)(allRights ? TRUE : FALSE), userRigh… in RemoveAccountRights()