public static SamUserHandle Open(Sid sid, SamUserAccess access) { using (var dhandle = new SamDomainHandle(sid.DomainName, SamDomainAccess.Lookup)) { return(new SamUserHandle(dhandle, dhandle.LookupName(sid.Name), access)); } }
public SamUserHandle(SamDomainHandle domainHandle, string name, SamUserAccess access) : this(domainHandle, domainHandle.LookupName(name), access) { }