34 references to SidType
System.DirectoryServices.AccountManagement (34)
System\DirectoryServices\AccountManagement\AD\ADDNLinkedAttrSet.cs (4)
600SidType sidType = Utils.ClassifySID(sid); 602if (sidType == SidType.FakeObject) 689SidType sidType = Utils.ClassifySID(foreignSid.pSid); 691if (sidType == SidType.RealObjectFakeDomain)
System\DirectoryServices\AccountManagement\AD\ADStoreCtx.cs (3)
2069SidType sidType = Utils.ClassifySID(sid); 2071if (sidType == SidType.FakeObject) 2085if (sidType == SidType.RealObjectFakeDomain)
System\DirectoryServices\AccountManagement\AD\ADStoreCtx_LoadStore.cs (2)
529if (Interop.Advapi32.IsValidSid(pSid) && (Utils.ClassifySID(pSid) == SidType.FakeObject)) 584if (Interop.Advapi32.IsValidSid(pSid) && (Utils.ClassifySID(pSid) == SidType.FakeObject))
System\DirectoryServices\AccountManagement\AuthZSet.cs (4)
256SidType sidType = Utils.ClassifySID(pSid); 259if (sidType == SidType.FakeObject) 268if (sidType == SidType.RealObjectFakeDomain) 422if (Utils.ClassifySID(pSid) == SidType.RealObject && Interop.Advapi32.EqualDomainSid(_psUserSid.DangerousGetHandle(), pSid, ref sameDomain))
System\DirectoryServices\AccountManagement\SAM\SAMMembersSet.cs (7)
112SidType sidType = Utils.ClassifySID(sid); 113if (sidType == SidType.FakeObject) 134if (sidType == SidType.RealObjectFakeDomain) 174Debug.Assert(sidType == SidType.RealObject); 386SidType sidType = Utils.ClassifySID(sid); 387Debug.Assert(sidType != SidType.FakeObject); 389if (sidType == SidType.RealObjectFakeDomain)
System\DirectoryServices\AccountManagement\SAM\SAMStoreCtx_LoadStore.cs (3)
356if (Interop.Advapi32.IsValidSid(pSid) && (Utils.ClassifySID(pSid) == SidType.FakeObject)) 421if (Interop.Advapi32.IsValidSid(pSid) && (Utils.ClassifySID(pSid) == SidType.FakeObject)) 504if (Utils.ClassifySID(sid) == SidType.RealObjectFakeDomain)
System\DirectoryServices\AccountManagement\Utils.cs (11)
183internal static SidType ClassifySID(byte[] sid) 201internal static unsafe SidType ClassifySID(IntPtr pSid) 215return SidType.RealObject; 227return SidType.FakeObject; 233return SidType.FakeObject; 23821 => SidType.RealObject, // Account SID 23932 => SidType.RealObjectFakeDomain, // BUILTIN SID 240_ => SidType.FakeObject, 305SidType sidType = ClassifySID(pCopyOfUserSid); 307if (sidType == SidType.RealObject) 664Debug.Assert(ClassifySID(sid) == SidType.FakeObject);