糖尿病康复,内容丰富有趣,生活中的好帮手!
糖尿病康复 > 明华澳汉 sle_4442 卡 读写

明华澳汉 sle_4442 卡 读写

时间:2019-03-17 23:01:47

相关推荐

明华澳汉 sle_4442 卡 读写

usingSystem;

usingSystem.Text;

usingSystem.Runtime.InteropServices;

namespaceFit.Dg.Client

{

/**////<summary>

///IC4442的摘要说明。

///</summary>

publicclassIC4442:IC

{

publicIC4442()

{

//

//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正确

publicstaticexternintSwr_4442(inticdev,intoffset,intlen,[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~256r_string:读出数据所存放地址指针

//返回:<>0错误=0正确

publicstaticexternintSrd_4442(inticdev,intoffset,intlen,[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正确

publicstaticexternintChk_4442(inticdev);

[DllImport("Mwic_32.dll",EntryPoint="csc_4442",SetLastError=true,

CharSet=CharSet.Auto,ExactSpelling=true,

CallingConvention=CallingConvention.Winapi)]

//说明:核对卡密码

//调用:icdev:通讯设备标识符len:密码个数,其值为3p_string:密码字符串指针

//返回:<0错误=0密码正确

publicstaticexternintCsc_4442(inticdev,intlen,[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:密码个数,其值为3p_string:新密码地址指针

//返回:<0错误=0正确

publicstaticexternintWsc_4442(inticdev,intlen,stringp_string);

[DllImport("Mwic_32.dll",EntryPoint="rsc_4442",CharSet=CharSet.Auto,CallingConvention=CallingConvention.Winapi)]

//说明:读出卡密码

//调用:icdev:通讯设备标识符len:密码个数,其值为3p_string:存放密码地址指针

//返回:<>0错误=0正确

publicstaticexternintRsc_4442(inticdev,intlen,[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正确

publicstaticexternintRsct_4442(inticdev,intcounter);

}

}

URL:URL:/Expert/topic/4877/4877324.xml?temp=.3906519

如果觉得《明华澳汉 sle_4442 卡 读写》对你有帮助,请点赞、收藏,并留下你的观点哦!

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。