示例#1
0
 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));
     }
 }
示例#2
0
 public SamUserHandle(SamDomainHandle domainHandle, string name, SamUserAccess access)
     : this(domainHandle, domainHandle.LookupName(name), access)
 {
 }