/// <summary> /// 获取硬件版本号 /// <param name="msg">输出信息</param> /// <returns></returns> public override bool GetDevVer(out string msg) { bool res = true; int st = 0; byte[] hardwareVer = new byte[24]; st = ReaderDllMethod.mwDevGetHardwareVer(handle, hardwareVer); if (st < 0) { msg = st.ToString() + "*" + ReaderDllMethod.getErrMsg(st); res = false; } else { msg = "1*" + Encoding.Default.GetString(hardwareVer, 0, st); } return(res); }