コード例 #1
0
        public override bool MifareRead(Int32 blockNo, byte[] blockData, out string msg)
        {
            bool res = true;
            int  st  = 0;

            st = ReaderDllMethod.mwMifareRead(handle, blockNo, blockData); //读数据
            if (st < 0)
            {
                msg = st.ToString() + "*" + ReaderDllMethod.getErrMsg(st);
                res = false;
            }
            else
            {
                msg = st.ToString() + "*" + ReaderDllMethod.getErrMsg(st);
                DevBeep(1, 1, 2);
            }
            return(res);
        }