最近的项目中用到读卡器,用的华视身份证阅读器,附上SDK使用手册
来源:互联网 发布:淘宝数据魔方免费版 编辑:程序博客网 时间:2024/05/21 09:57
应用函数开发包含下列文件:
termb.dll API函数的动态联接库
sdtapi.dll 内部动态库
cvrapi.dll 内部动态库
wltrs.dll 内部动态库
termb.lic 身份证相片解压授权文件,放于C:\目录下
2. 函数列表
下面这5个为主要的API
int CVR_InitComm(int Port) 初始化连接;
int CVR_Authenticate() 卡认证;
int CVR_Read_Content(int Active) 读卡操作;
int CVR_CloseComm() 关闭连接;
int CVR_Ant(int mode) 射频操作,仅串口有效
下面的为可选API,主要为二次开发使用
int CVR_ReadBaseMsg (unsigned char *pucCHMsg, unsigned int *puiCHMsgLen,unsigned char *pucPHMsg, unsigned int *puiPHMsgLen,int nMode) 读卡操作(读入内存)
int GetPeopleName(char *strTmp, int *strLen) 得到姓名信息
int GetPeopleSex(char *strTmp, int *strLen) 得到性别信息
int GetPeopleNation(char *strTmp, int *strLen) 得到民族信息
int GetPeopleBirthday(char *strTmp, int *strLen) 得到出生日期
int GetPeopleAddress(char *strTmp, int *strLen) 得到地址信息
int GetPeopleIDCode(char *strTmp, int *strLen) 得到身份证号信息
int GetDepartment(char *strTmp, int *strLen) 得到发证机关信息
int GetStartDate(char *strTmp, int *strLen) 得到有效开始日期
int GetEndDate(char *strTmp, int *strLen) 得到有效截止日期
3.部份代码
/// 初始化设备
/// </summary>
/// <param name="port"></param>
/// <returns></returns>
[DllImport( " termb.dll ", CharSet = CharSet.Auto)]
private static extern int CVR_InitComm( int port);
/// <summary>
/// 关闭设备
/// </summary>
/// <returns></returns>
[DllImport( " termb.dll ", CharSet = CharSet.Auto)]
private static extern int CVR_CloseComm();
/// <summary>
/// 卡与身份证认证
/// </summary>
/// <returns></returns>
[DllImport( " termb.dll ", CharSet = CharSet.Auto)]
private static extern int CVR_Authenticate();
/// <summary>
/// 读取内容
/// </summary>
/// <param name="active"></param>
/// <returns></returns>
[DllImport( " termb.dll ", CharSet = CharSet.Auto)]
private static extern int CVR_Read_Content( int active);
<script type="text/javascript"><!--google_ad_client = "ca-pub-1944176156128447";/* cnblogs 首页横幅 */google_ad_slot = "5419468456";google_ad_width = 728;google_ad_height = 90;//--></script><script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
- 最近的项目中用到读卡器,用的华视身份证阅读器,附上SDK使用手册
- 华视身份证阅读器SDK使用手册
- 二代身份证读卡器的二次开发
- 最近项目中用到sql的一些资料总结
- 项目中用到的
- 这是我最近项目中用到的分页存储过程!希望有用!
- 最近项目中用到的图片上传前预览功能,兼容IE6-9,FF
- 项目中用到的开源库
- 项目中用到的工具
- 项目中用到的css
- 神思二代身份证读卡器Demo的C++版本
- 华视cvr-100UC 二代身份证读卡通用函数
- delphi 二代身份证阅读器 SDT_ReadBaseMsg()读取到的照片数据进行处理问题
- 身份证读卡器
- 最近ios开发中用到的一些技术
- 最近在C++ 中用到extern关键字的一点点感悟
- 记录下最近工作中用到的开发工具
- 最近项目中用hibernate分页查询的底层方法
- ORA-01950: 表空间'USERS'中无权限
- 编程珠玑第二章第六题--利用标记输出同类元素
- linq to sql左链接
- 从new Ext.data.Store取得从后台传到前台的值
- ETL系列专题4——ETL之T
- 最近的项目中用到读卡器,用的华视身份证阅读器,附上SDK使用手册
- 设想-思维导图
- Xcode的持续集成指南
- Zend Studio 9 使用注释模版
- 多线程推送 push JavaPNS 2.1
- DOM高级编程(一)
- HDU4535(错排模型)
- 用提问来促进思维——再谈 WHAT HOW WHY 三部曲
- [ACM]某一天的n天后是几年几月几日