/// <exception cref="System.IO.IOException"></exception> public SamrAliasHandle(DcerpcHandle handle, SamrDomainHandle domainHandle, int access , int rid) { MsrpcSamrOpenAlias rpc = new MsrpcSamrOpenAlias(domainHandle, access, rid, this); handle.Sendrecv(rpc); if (rpc.Retval != 0) { throw new SmbException(rpc.Retval, false); } }