public override bool MifareAuthHex(Int32 sectorNo, string strKey, out string msg) { bool res = true; int st = 0; st = ReaderDllMethod.mwMifareAuthHex(handle, 0, sectorNo, strKey); //验证密码 if (st < 0) { msg = st.ToString() + "*" + ReaderDllMethod.getErrMsg(st); res = false; } else { msg = st.ToString() + "*" + ReaderDllMethod.getErrMsg(st); DevBeep(1, 1, 2); } return(res); }