public override bool Rats(out string msg) { bool res = true; int st = 0; byte[] cardUid = new byte[50]; st = ReaderDllMethod.mwRats(handle, cardUid); //获取TYPE-A类型的智能卡复位信息 if (st < 0) { msg = st.ToString() + "*" + ReaderDllMethod.getErrMsg(st); res = false; } else { msg = st.ToString() + "*" + ReaderDllMethod.getErrMsg(st); StringBuilder cardStr = new StringBuilder(); ReaderDllMethod.BinToHex(cardUid, cardStr, st); AtrInfo = cardStr.ToString(); DevBeep(1, 1, 2); } return(res); }