Пример #1
0
        private static Sid LookupAccountSid(string name)
        {
            var sid = NtSecurity.SidFromSddl(name, false);

            if (sid.IsSuccess)
            {
                return(sid.Result);
            }
            return(NtSecurity.LookupAccountName(name));
        }