zoukankan
html css js c++ java
明华澳汉 sle_4442 卡 读写
using
System;
using
System.Text ;
using
System.Runtime.InteropServices;
namespace
Fit.Dg.Client
{
/**/
///
<summary>
///
IC4442 的摘要说明。
///
</summary>
public
class
IC4442:IC
{
public
IC4442()
{
//
//
TODO: 在此处添加构造函数逻辑
//
}
[DllImport(
"
Mwic_32.dll
"
, EntryPoint
=
"
swr_4442
"
, SetLastError
=
true
,
CharSet
=
CharSet.Auto, ExactSpelling
=
false
,
CallingConvention
=
CallingConvention.StdCall)]
//
说明: 向指定地址写数据
//
调用: icdev: 通讯设备标识符 offset: 偏移地址,其值范围0~255
//
len: 字符串长度,其值范围1~256w_string: 写入数据 [MarshalAs(UnmanagedType.LPArray)] byte[] StringBuilder
//
返回: <0 错误 =0 正确
public
static
extern
int
Swr_4442(
int
icdev,
int
offset,
int
len, [MarshalAs(UnmanagedType.LPArray)]
byte
[] w_string);
[DllImport(
"
Mwic_32.dll
"
, EntryPoint
=
"
srd_4442
"
, SetLastError
=
true
,
CharSet
=
CharSet.Auto, ExactSpelling
=
false
,
CallingConvention
=
CallingConvention.StdCall)]
//
说明: 从指定地址读数据
//
调用: icdev: 通讯设备标识符 offset: 偏移地址,其值范围0~255
//
len: 字符串长度,其值范围1~256 r_string: 读出数据所存放地址指针
//
返回: <>0 错误 =0 正确
public
static
extern
int
Srd_4442(
int
icdev,
int
offset,
int
len,[MarshalAs(UnmanagedType.LPArray)]
byte
[] r_string );
[DllImport(
"
Mwic_32.dll
"
, EntryPoint
=
"
chk_4442
"
, SetLastError
=
true
,
CharSet
=
CharSet.Auto , ExactSpelling
=
false
,
CallingConvention
=
CallingConvention.StdCall)]
//
说明: 检查卡型是否正确
//
调用: icdev: 通讯设备标识符
//
返回: <0 错误 =0 正确
public
static
extern
int
Chk_4442(
int
icdev);
[DllImport(
"
Mwic_32.dll
"
, EntryPoint
=
"
csc_4442
"
, SetLastError
=
true
,
CharSet
=
CharSet.Auto, ExactSpelling
=
true
,
CallingConvention
=
CallingConvention.Winapi)]
//
说明: 核对卡密码
//
调用: icdev: 通讯设备标识符 len: 密码个数,其值为3 p_string: 密码字符串指针
//
返回: <0 错误 =0 密码正确
public
static
extern
int
Csc_4442(
int
icdev,
int
len, [MarshalAs(UnmanagedType.LPArray)]
byte
[] p_string);
[DllImport(
"
Mwic_32.dll
"
, EntryPoint
=
"
wsc_4442
"
, SetLastError
=
true
,
CharSet
=
CharSet.Auto, ExactSpelling
=
true
,
CallingConvention
=
CallingConvention.StdCall)]
//
说明: 改写卡密码
//
调用: icdev: 通讯设备标识符 len: 密码个数,其值为3 p_string: 新密码地址指针
//
返回: <0 错误 =0 正确
public
static
extern
int
Wsc_4442(
int
icdev,
int
len,
string
p_string);
[DllImport(
"
Mwic_32.dll
"
, EntryPoint
=
"
rsc_4442
"
, CharSet
=
CharSet.Auto,CallingConvention
=
CallingConvention.Winapi )]
//
说明: 读出卡密码
//
调用: icdev: 通讯设备标识符 len: 密码个数,其值为3 p_string: 存放密码地址指针
//
返回: <>0 错误 =0 正确
public
static
extern
int
Rsc_4442(
int
icdev,
int
len, [MarshalAs(UnmanagedType.LPArray)]
byte
[] p_string);
[DllImport(
"
Mwic_32.dll
"
, EntryPoint
=
"
rsct_4442
"
, SetLastError
=
true
,
CharSet
=
CharSet.Auto, ExactSpelling
=
true
,
CallingConvention
=
CallingConvention.StdCall)]
//
说明: 读出密码错误计数器值
//
调用: icdev: 通讯设备标识符 counter: 密码错误记数值存放指针
//
返回: <0 错误 >=0 正确
public
static
extern
int
Rsct_4442(
int
icdev,
int
counter);
}
}
URL:URL:http://community.csdn.net/Expert/topic/4877/4877324.xml?temp=.3906519
查看全文
相关阅读:
如何打开windows的远程桌面
mongodb存储引擎
使用场景举例
webpack初识
mongodb快速入门
mongodb初识
mysql主从复制与读写分离
gradle简单配置跟模块依赖
mysql执行计划
synchronized的可见性理解
原文地址:https://www.cnblogs.com/yiki/p/720494.html
最新文章
《Structuring Machine Learning Projects》课堂笔记
在pycharm和tensorflow环境下运行nmt
python代码在IDE下调试设置命令行参数
js实现避免浏览器拦截弹出新页面的方法
select & input的disabled属性及其向后台传值问题
input文本框禁止修改文本——disabled和readonly属性的作用及区别
nodejs 配置服务自启动
aliyun EC2配置利用filezilla配置ftp服务
windows下nodejs服务器的安装与配置
Windows下设置oracle数据库定时备份
热门文章
Chapter 7 Windows下pycaffe的使用之draw_net.py
扇区详解
磁盘的有关概念总结
OpenStack与Hadoop的区别与联系
[马哥视频学习]根文件系统
CentOS 6.2配置本地yum源
ethtool命令详解
linux下挂载ISO像镜文件
Linux解压命令大全
Linux升级内核总结
Copyright © 2011-2022 走看看