/// <summary> /// 返回卡号 /// </summary> /// <returns></returns> public string findCard() { uint _snr = 0; int iFindCardResult = E7Lib.fw_card(iDevice, 1, ref _snr); if (0 == iFindCardResult) { return(_snr.ToString()); } else { return(""); } }
public string readCardID() { uint icard = 0; int result = E7Lib.fw_card(iDevice, 1, ref icard); Byte[] pass = new Byte[6] { 0xff, 0xff, 0xff, 0xff, 0xff, 0xff }; int iLoad = E7Lib.fw_load_key(iDevice, 0, sectorNumber, ref pass[0]); int ipass = E7Lib.fw_authentication(iDevice, 0, sectorNumber); if (0 == result) { return(icard.ToString()); } else { return(""); } }