Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ IsWellKnownSid()

static bool System.Security.Principal.Win32.IsWellKnownSid ( SecurityIdentifier sid,
WellKnownSidType type )
inlinestaticpackage

Definition at line 141 of file Win32.cs.

142 {
143 byte[] array = new byte[sid.BinaryLength];
144 sid.GetBinaryForm(array, 0);
145 if (global::Interop.Advapi32.IsWellKnownSid(array, (int)type) == 0)
146 {
147 return false;
148 }
149 return true;
150 }

References System.array, System.Security.Principal.SecurityIdentifier.BinaryLength, System.Security.Principal.SecurityIdentifier.GetBinaryForm(), and System.type.

Referenced by System.Security.Principal.SecurityIdentifier.IsWellKnown().