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