Lines Matching refs:sid
17 // Converts the passed in sid string to a PSID that must be relased with
19 PSID ConvertSid(const string16& sid) {
21 if (!ConvertStringSidToSid(sid.c_str(), &local_sid))
36 LocalFree(attributes_[i].Sid);
51 sid_and_attributes.Sid = ConvertSid(capabilities[i]);
52 if (!sid_and_attributes.Sid)
86 ResultCode CreateAppContainer(const string16& sid, const string16& name) {
88 if (!ConvertStringSidToSid(sid.c_str(), &local_sid))
91 typedef HRESULT (WINAPI* AppContainerRegisterSidPtr)(PSID sid,
114 ResultCode DeleteAppContainer(const string16& sid) {
116 if (!ConvertStringSidToSid(sid.c_str(), &local_sid))
119 typedef HRESULT (WINAPI* AppContainerUnregisterSidPtr)(PSID sid);
140 string16 LookupAppContainer(const string16& sid) {
142 if (!ConvertStringSidToSid(sid.c_str(), &local_sid))
145 typedef HRESULT (WINAPI* AppContainerLookupMonikerPtr)(PSID sid,