• 大小: 1012KB
    文件类型: .rar
    金币: 2
    下载: 0 次
    发布日期: 2024-02-01
  • 语言: C#
  • 标签: DKQ-116D  

资源简介

C#新中新DKQ-116D二次开发代码,适合C#开发Winform、Webform二次开发,同时解决了身份证图片问题,尝试读取或写入内存,试图加载格式不正确等一系列问题。

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Runtime.InteropServices;
using System.Windows.Forms.Design;

namespace WindowsFormsApplication1
{
    public partial class Form1 : Form
    {
        [StructLayout(LayoutKind.Sequential CharSet = CharSet.Ansi Pack = 1)]
        public struct IDCardData
        {
            [MarshalAs(UnmanagedType.ByValTStr SizeConst = 32)]
            public string Name; //姓名   
            [MarshalAs(UnmanagedType.ByValTStr SizeConst = 6)]
            public string Sex;   //性别
            [MarshalAs(UnmanagedType.ByValTStr SizeConst = 20)]
            public string Nation; //名族
            [MarshalAs(UnmanagedType.ByValTStr SizeConst = 18)]
            public string Born; //出生日期
            [MarshalAs(UnmanagedType.ByValTStr SizeConst = 72)]
            public string Address; //住址
            [MarshalAs(UnmanagedType.ByValTStr SizeConst = 38)]
            public string IDCardNo; //身份证号
            [MarshalAs(UnmanagedType.ByValTStr SizeConst = 32)]
            public string GrantDept; //发证机关
            [MarshalAs(UnmanagedType.ByValTStr SizeConst = 18)]
            public string UserLifeBegin; // 有效开始日期
            [MarshalAs(UnmanagedType.ByValTStr SizeConst = 18)]
            public string UserLifeEnd;  // 有效截止日期
            [MarshalAs(UnmanagedType.ByValTStr SizeConst = 38)]
            public string reserved; // 保留
            [MarshalAs(UnmanagedType.ByValTStr SizeConst = 255)]
            public string PhotoFileName; // 照片路径
        }
        /************************端口类API *************************/
        [DllImport(“SynIDCardAPI.dll“ EntryPoint = “Syn_GetCOMBaud“ CharSet = CharSet.Ansi)]
        public static extern int Syn_GetCOMBaud(int iPort ref uint puiBaudRate);
        [DllImport(“SynIDCardAPI.dll“ EntryPoint = “Syn_SetCOMBaud“ CharSet = CharSet.Ansi)]
        public static extern int Syn_SetCOMBaud(int iPort uint uiCurrBaud uint uiSetBaud);
        [DllImport(“SynIDCardAPI.dll“ EntryPoint = “Syn_OpenPort“ CharSet = CharSet.Ansi)]
        public static extern int Syn_OpenPort(int iPort);
        [DllImport(“SynIDCardAPI.dll“ EntryPoint = “Syn_ClosePort“ CharSet = CharSet.Ansi)]
        public static extern int Syn_ClosePort(int iPort);
        /**************************SAM类函数 **************************/
        [DllImport(“SynIDCardAPI.dll“ EntryPoint = “Syn_SetMaxRFByte“ CharSet = CharSet.Ansi)]
        public static extern int Syn_SetMaxRFByte(int iPort byte ucByte int iIfOpen);
        [DllImport(“SynIDCardAPI.dll“ EntryPoint = “Syn_ResetSAM“ CharSet = CharSet.Ansi)]
        public static extern int Syn_ResetSAM(int iPort int iIfOpen);
        [DllImport(“SynIDCardAPI.dll“ EntryPoint = “Syn_GetSAMStatus“ CharSet = CharSet.Ansi)]
        public static extern i

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件        905  2016-07-05 17:05  WindowsFormsApplication1\app.config

     文件     179200  2013-03-26 11:26  WindowsFormsApplication1\bin\x86\Debug\ID_Fpr.dll

     文件     117248  2013-03-25 15:25  WindowsFormsApplication1\bin\x86\Debug\ID_FprCap.dll

     文件      77824  2012-12-28 10:54  WindowsFormsApplication1\bin\x86\Debug\sdtapi.dll

     文件     243712  2014-07-31 11:22  WindowsFormsApplication1\bin\x86\Debug\SynIDCardAPI.dll

     文件     212992  2014-08-04 11:51  WindowsFormsApplication1\bin\x86\Debug\USBRead.dll

     文件      22528  2016-09-09 12:37  WindowsFormsApplication1\bin\x86\Debug\WindowsFormsApplication1.exe

     文件        905  2016-07-05 17:05  WindowsFormsApplication1\bin\x86\Debug\WindowsFormsApplication1.exe.config

     文件      40448  2016-09-09 12:37  WindowsFormsApplication1\bin\x86\Debug\WindowsFormsApplication1.pdb

     文件      23168  2016-09-12 15:32  WindowsFormsApplication1\bin\x86\Debug\WindowsFormsApplication1.vshost.exe

     文件        905  2016-07-05 17:05  WindowsFormsApplication1\bin\x86\Debug\WindowsFormsApplication1.vshost.exe.config

     文件       2994  2016-07-05 17:05  WindowsFormsApplication1\bin\x86\Debug\WindowsFormsApplication1.vshost.exe.manifest

     文件      94208  2012-12-31 08:38  WindowsFormsApplication1\bin\x86\Debug\WltRS.dll

     文件      27917  2016-09-09 12:37  WindowsFormsApplication1\Form1.cs

     文件       9898  2016-07-05 16:40  WindowsFormsApplication1\Form1.Designer.cs

     文件       6022  2016-09-09 12:37  WindowsFormsApplication1\Form1.resx

     文件     179200  2013-03-26 11:26  WindowsFormsApplication1\ID_Fpr.dll

     文件     117248  2013-03-25 15:25  WindowsFormsApplication1\ID_FprCap.dll

     文件       1764  2016-07-05 17:02  WindowsFormsApplication1\obj\x86\Debug\DesignTimeResolveAssemblyReferences.cache

     文件       7278  2016-09-08 10:09  WindowsFormsApplication1\obj\x86\Debug\DesignTimeResolveAssemblyReferencesInput.cache

     文件          0  2016-07-04 13:59  WindowsFormsApplication1\obj\x86\Debug\TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs

     文件          0  2016-07-04 13:59  WindowsFormsApplication1\obj\x86\Debug\TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs

     文件          0  2016-07-04 13:59  WindowsFormsApplication1\obj\x86\Debug\TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs

     文件       5120  2016-07-05 17:05  WindowsFormsApplication1\obj\x86\Debug\TempPE\Properties.Resources.Designer.cs.dll

     文件       2701  2016-09-12 15:32  WindowsFormsApplication1\obj\x86\Debug\WindowsFormsApplication1.csproj.FileListAbsolute.txt

     文件        977  2016-09-09 12:37  WindowsFormsApplication1\obj\x86\Debug\WindowsFormsApplication1.csproj.GenerateResource.Cache

     文件       2060  2016-07-04 13:59  WindowsFormsApplication1\obj\x86\Debug\WindowsFormsApplication1.csprojResolveAssemblyReference.cache

     文件      22528  2016-09-09 12:37  WindowsFormsApplication1\obj\x86\Debug\WindowsFormsApplication1.exe

     文件        180  2016-09-09 12:37  WindowsFormsApplication1\obj\x86\Debug\WindowsFormsApplication1.Form1.resources

     文件      40448  2016-09-09 12:37  WindowsFormsApplication1\obj\x86\Debug\WindowsFormsApplication1.pdb

............此处省略31个文件信息

评论

共有 条评论

相关资源