轻松快速玩转15693卡,请看下面**简单的C#函数声明:
//外部函数声明:让设备发出声响
[DllImport("OUR_MIFARE.dll", EntryPoint = "pcdbeep",
CallingConvention = CallingConvention.StdCall)]
static extern byte pcdbeep(UInt32 xms);//xms单位为毫秒
//读取设备编号,可做为软件加密狗用,也可以根据此编号在公司网站上查询保修期限
[DllImport("OUR_MIFARE.dll", EntryPoint = "pcdgetdevicenumber",
CallingConvention = CallingConvention.StdCall)]
static extern byte pcdgetdevicenumber(byte[]
devicenumber);//devicenumber用于返回编号
//轻松读卡
[DllImport("OUR_MIFARE.dll", EntryPoint = "iso15693readex",
CallingConvention = CallingConvention.StdCall)]
static extern byte iso15693readex(byte ctrlword, byte afi, byte
startblock,byte blocknum,byte[] uid, byte[] revbuf
//轻松写卡
[DllImport("OUR_MIFARE.dll", EntryPoint = "iso15693writeex",
CallingConvention = CallingConvention.StdCall)]
static extern byte iso15693writeex(byte ctrlword, byte afi, byte
startblock, byte blocknum, byte[] uid, byte[] writebuf);