MsrpcSamrOpenDomain rpc = new MsrpcSamrOpenDomain(policyHandle, access, sid, this); handle.sendrecv(rpc); if (rpc.retval != 0) throw new SmbException(rpc.retval, false);