• 大小: 0.27M
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2024-04-29
  • 语言: C#
  • 标签: usb  sb  IC  

资源简介


资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading.Tasks;

namespace ICCardUSB
{
    public class Common
    {
        public int icdev; // 通讯设备标识符

        [DllImport(“mwrf32.dll“ EntryPoint = “rf_usbinit“ SetLastError = true
               CharSet = CharSet.Auto ExactSpelling = false
               CallingConvention = CallingConvention.StdCall)]
        public static extern int rf_usbinit();

        [DllImport(“mwrf32.dll“ EntryPoint = “rf_exit“ SetLastError = true
               CharSet = CharSet.Auto ExactSpelling = false
               CallingConvention = CallingConvention.StdCall)]
        public static extern Int16 rf_exit(int icdev);

        [DllImport(“mwrf32.dll“ EntryPoint = “rf_beep“ SetLastError = true
               CharSet = CharSet.Auto ExactSpelling = false
               CallingConvention = CallingConvention.StdCall)]
        public static extern Int16 rf_beep(int icdev int msec);

        [DllImport(“mwrf32.dll“ EntryPoint = “rf_get_status“ SetLastError = true
              CharSet = CharSet.Auto ExactSpelling = false
              CallingConvention = CallingConvention.StdCall)]
        public static extern Int16 rf_get_status(int icdev [MarshalAs(UnmanagedType.LPArray)]byte[] state);

        [DllImport(“mwrf32.dll“ EntryPoint = “rf_load_key“ SetLastError = true
             CharSet = CharSet.Auto ExactSpelling = false
             CallingConvention = CallingConvention.StdCall)]
        public static extern Int16 rf_load_key(int icdev int mode int secnr [MarshalAs(UnmanagedType.LPArray)]byte[] keybuff);

        [DllImport(“mwrf32.dll“ EntryPoint = “rf_load_key_hex“ SetLastError = true
             CharSet = CharSet.Auto ExactSpelling = false
             CallingConvention = CallingConvention.StdCall)]
        public static extern Int16 rf_load_key_hex(int icdev int mode int secnr [MarshalAs(UnmanagedType.LPArray)]byte[] keybuff);


        [DllImport(“mwrf32.dll“ EntryPoint = “a_hex“ SetLastError = true
             CharSet = CharSet.Auto ExactSpelling = false
             CallingConvention = CallingConvention.StdCall)]
        public static extern Int16 a_hex([MarshalAs(UnmanagedType.LPArray)]byte[] asc [MarshalAs(UnmanagedType.LPArray)]byte[] hex int len);

        [DllImport(“mwrf32.dll“ EntryPoint = “hex_a“ SetLastError = true
             CharSet = CharSet.Auto ExactSpelling = false
             CallingConvention = CallingConvention.StdCall)]
        public static extern Int16 hex_a([MarshalAs(UnmanagedType.LPArray)]byte[] hex [MarshalAs(UnmanagedType.LPArray)]byte[] asc int len);

        [DllImport(“mwrf32.dll“ EntryPoint = “rf_reset“ SetLastError = true
             CharSet = CharSet.Auto ExactSpelling = false
             CallingConvention = CallingConvention.StdCall)]
        public static extern Int16 rf_re

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2020-04-03 13:36  ICCardUSB\
     目录           0  2020-04-03 13:36  ICCardUSB\.vs\
     目录           0  2020-04-03 13:36  ICCardUSB\.vs\ICCardUSB\
     目录           0  2020-04-03 13:36  ICCardUSB\.vs\ICCardUSB\v14\
     文件       41984  2020-04-03 13:58  ICCardUSB\.vs\ICCardUSB\v14\.suo
     目录           0  2020-04-03 14:01  ICCardUSB\.vs\ICCardUSB\v16\
     文件       54784  2020-07-27 16:43  ICCardUSB\.vs\ICCardUSB\v16\.suo
     目录           0  2020-04-03 14:01  ICCardUSB\.vs\ICCardUSB\v16\Server\
     目录           0  2020-05-21 11:21  ICCardUSB\.vs\ICCardUSB\v16\Server\sqlite3\
     文件           0  2020-04-03 14:01  ICCardUSB\.vs\ICCardUSB\v16\Server\sqlite3\db.lock
     文件      585728  2020-05-21 11:21  ICCardUSB\.vs\ICCardUSB\v16\Server\sqlite3\storage.ide
     目录           0  2020-05-06 17:45  ICCardUSB\ICCardUSB\
     文件         189  2020-04-03 13:36  ICCardUSB\ICCardUSB\App.config
     目录           0  2020-04-03 13:36  ICCardUSB\ICCardUSB\bin\
     目录           0  2020-04-03 13:50  ICCardUSB\ICCardUSB\bin\Debug\
     文件       12800  2020-07-27 16:42  ICCardUSB\ICCardUSB\bin\Debug\ICCardUSB.exe
     文件         189  2020-04-03 13:36  ICCardUSB\ICCardUSB\bin\Debug\ICCardUSB.exe.config
     文件       26112  2020-07-27 16:42  ICCardUSB\ICCardUSB\bin\Debug\ICCardUSB.pdb
     文件       22696  2020-04-03 13:58  ICCardUSB\ICCardUSB\bin\Debug\ICCardUSB.vshost.exe
     文件         189  2020-04-03 13:36  ICCardUSB\ICCardUSB\bin\Debug\ICCardUSB.vshost.exe.config
     文件         490  2019-03-19 12:46  ICCardUSB\ICCardUSB\bin\Debug\ICCardUSB.vshost.exe.manifest
     文件      114688  2014-10-16 10:54  ICCardUSB\ICCardUSB\bin\Debug\mwrf32.dll
     文件        6869  2020-04-03 13:48  ICCardUSB\ICCardUSB\Common.cs
     文件        4653  2020-05-06 17:45  ICCardUSB\ICCardUSB\Form1.cs
     文件        5143  2020-04-03 17:25  ICCardUSB\ICCardUSB\Form1.Designer.cs
     文件        5817  2020-04-03 17:25  ICCardUSB\ICCardUSB\Form1.resx
     文件        3953  2020-04-03 13:48  ICCardUSB\ICCardUSB\ICCardUSB.csproj
     目录           0  2020-04-03 13:36  ICCardUSB\ICCardUSB\obj\
     目录           0  2020-07-27 16:42  ICCardUSB\ICCardUSB\obj\Debug\
     文件         214  2020-07-27 16:42  ICCardUSB\ICCardUSB\obj\Debug\.NETframeworkVersion=v4.5.2.AssemblyAttributes.cs
     文件        1435  2020-04-03 17:24  ICCardUSB\ICCardUSB\obj\Debug\DesignTimeResolveAssemblyReferences.cache
............此处省略21个文件信息

评论

共有 条评论