• 大小: 114KB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-05-18
  • 语言: C#
  • 标签: 指纹采集  SynoAPIEx  C#  

资源简介

C#调用SynoAPIEx.dll相关接口采集指纹信息+绘制指纹图片

资源截图

代码片段和文件信息

/*******************************************************************************
 * Author: TongTong_Chen
 * Description: 和SynoAPIEx通讯接口
 * Email:tongtongchen0@gmail.com
*********************************************************************************/

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

namespace FingerPrint
{
    public class DriveOpration
    {
        #region  错误类型

        public static int PS_OK = 0x00;
        public static int PS_COMM_ERR = 0x01;
        public static int PS_NO_FINGER = 0x02;
        public static int PS_GET_IMG_ERR = 0x03;
        public static int PS_FP_TOO_DRY = 0x04;
        public static int PS_FP_TOO_WET = 0x05;
        public static int PS_FP_DISORDER = 0x06;
        public static int PS_LITTLE_FEATURE = 0x07;
        public static int PS_NOT_MATCH = 0x08;
        public static int PS_NOT_SEARCHED = 0x09;
        public static int PS_MERGE_ERR = 0x0a;
        public static int PS_ADDRESS_OVER = 0x0b;
        public static int PS_READ_ERR = 0x0c;
        public static int PS_UP_TEMP_ERR = 0x0d;
        public static int PS_RECV_ERR = 0x0e;
        public static int PS_UP_IMG_ERR = 0x0f;
        public static int PS_DEL_TEMP_ERR = 0x10;
        public static int PS_CLEAR_TEMP_ERR = 0x11;
        public static int PS_SLEEP_ERR = 0x12;
        public static int PS_INVALID_PASSWORD = 0x13;
        public static int PS_RESET_ERR = 0x14;
        public static int PS_INVALID_IMAGE = 0x15;
        public static int PS_HANGOVER_UNREMOVE = 0X17;

        #endregion

        #region  设备类型

        public static int DEVICE_USB = 0;
        public static int DEVICE_COM = 1;
        public static int DEVICE_UDisk = 2;

        #endregion

        #region 串口号

        public static int COM1 = 0x01;
        public static int COM2 = 0x02;
        public static int COM3 = 0x03;

        #endregion

        #region  默认波特率

        public static int BAUD_RATE_9600 = 0x01;
        public static int BAUD_RATE_19200 = 0x02;
        public static int BAUD_RATE_38400 = 0x04;
        public static int BAUD_RATE_57600 = 0x06;  //default 
        public static int BAUD_RATE_115200 = 0x0C;

        #endregion

        #region  Function

        //
        //[OUT] 
        //[IN] 设备类型,DEVICE_USB、DEVICE_COM、DEVICE_ UDisk
        //[IN] 串口号 1~16
        //[IN] 波特率 1~n,其值*9600=实际波特率值
        //[IN] 数据包大小,实际数据包大小= 32*(0x01<        /// 
        /// 打开设备
        /// 

        /// 设备句柄
        /// 设备类型,DEVICE_USB、DEVICE_COM、DEVICE_ UDisk
        /// 串口号 1~16
        /// 波特率 1~n,其值*9600=实际波特率值
        /// 数据包大小,实际数据包大小= 32*(0x01<
        /// 

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

    ..A..H.     50176  2018-11-30 11:10  FingerPrint\.vs\HBBJ.FingerPrint\v14\.suo

     文件        184  2018-11-30 10:49  FingerPrint\App.config

     文件      23552  2018-11-30 11:10  FingerPrint\bin\Debug\FingerPrint.exe

     文件        184  2018-11-30 10:49  FingerPrint\bin\Debug\FingerPrint.exe.config

     文件      34304  2018-11-30 11:10  FingerPrint\bin\Debug\FingerPrint.pdb

     文件      22696  2018-11-30 11:06  FingerPrint\bin\Debug\FingerPrint.vshost.exe

     文件        184  2018-11-30 10:49  FingerPrint\bin\Debug\FingerPrint.vshost.exe.config

     文件        490  2017-09-29 21:43  FingerPrint\bin\Debug\FingerPrint.vshost.exe.manifest

     文件      57344  2018-11-30 09:55  FingerPrint\bin\Debug\SynoAPIEx.dll

     文件      10791  2018-11-30 11:08  FingerPrint\DriveOpration.cs

     文件       4462  2018-11-30 10:51  FingerPrint\FingerPrint.csproj

     文件        228  2018-11-30 09:55  FingerPrint\FingerPrint.csproj.user

     文件       4820  2018-11-30 11:08  FingerPrint\Frm_Main.cs

     文件      14856  2018-11-30 10:58  FingerPrint\Frm_Main.Designer.cs

     文件       7849  2018-11-30 10:58  FingerPrint\Frm_Main.resx

     文件       6337  2018-11-30 11:09  FingerPrint\Frm_MainFunction.cs

     文件       3852  2018-11-30 11:09  FingerPrint\Frm_MainHelp.cs

     文件        988  2018-11-30 11:03  FingerPrint\HBBJ.FingerPrint.sln

     文件       7204  2018-11-30 11:06  FingerPrint\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache

     文件        706  2018-11-30 11:10  FingerPrint\obj\Debug\FingerPrint.csproj.FileListAbsolute.txt

     文件       1060  2018-11-30 11:10  FingerPrint\obj\Debug\FingerPrint.csproj.GenerateResource.Cache

     文件       2360  2018-11-30 11:10  FingerPrint\obj\Debug\FingerPrint.csprojResolveAssemblyReference.cache

     文件      23552  2018-11-30 11:10  FingerPrint\obj\Debug\FingerPrint.exe

     文件       1716  2018-11-30 11:10  FingerPrint\obj\Debug\FingerPrint.Frm_Main.resources

     文件      34304  2018-11-30 11:10  FingerPrint\obj\Debug\FingerPrint.pdb

     文件       1718  2018-11-30 11:10  FingerPrint\obj\Debug\FingerPrint.Properties.Resources.resources

     文件          0  2018-11-30 11:06  FingerPrint\obj\Debug\TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs

     文件          0  2018-11-30 11:06  FingerPrint\obj\Debug\TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs

     文件          0  2018-11-30 11:06  FingerPrint\obj\Debug\TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs

     文件        526  2018-11-30 10:50  FingerPrint\Program.cs

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

评论

共有 条评论

相关资源