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