示例#1
0
 public  SamUser OpenUser(SecurityIdentifier sid, SamUserAccessMask desiredAccess)
 {
     int rid = sid.GetRid();
     return this.OpenUser(rid, desiredAccess);
 }
 public void SecurityIdentifierExtensions_GetRid_UserSID()
 {
     SecurityIdentifier sid = new SecurityIdentifier("S-1-5-21-3180365339-800773672-3767752645-500");
     int rid = sid.GetRid();
     Assert.AreEqual(500, rid);
 }