You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
51 lines
2.4 KiB
51 lines
2.4 KiB
using System;
|
|
using System.Collections.Generic;
|
|
using System.Drawing;
|
|
using System.Drawing.Imaging;
|
|
using System.Reflection;
|
|
using System.Runtime.InteropServices;
|
|
using System.IO;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using System.Windows.Forms;
|
|
using ShenTun.IcCard.Common;
|
|
|
|
namespace ShenTun.IcCard
|
|
{
|
|
public class HXFDX3S
|
|
{
|
|
|
|
//二代证相关API---------------------------------------------------------------------------------------
|
|
[DllImport(@"HXFDX3S\sdtapi.dll", CallingConvention = CallingConvention.StdCall)]
|
|
public static extern int SDT_GetCOMBaud(int iPort, ref uint puiBaudRate);
|
|
|
|
[DllImport(@"HXFDX3S\sdtapi.dll", CallingConvention = CallingConvention.StdCall)]
|
|
public static extern int SDT_SetCOMBaud(int iPort, uint uiCurrBaud, uint uiSetBaud);
|
|
|
|
[DllImport(@"HXFDX3S\sdtapi.dll", CallingConvention = CallingConvention.StdCall)]
|
|
public static extern int SDT_StartFindIDCard(int iPort, byte[] pucManaInfo, int iIfOpen);
|
|
|
|
[DllImport(@"HXFDX3S\sdtapi.dll", CallingConvention = CallingConvention.StdCall)]
|
|
public static extern int SDT_SelectIDCard(int iPort, byte[] pucManaMsg, int iIfOpen);
|
|
|
|
[DllImport(@"HXFDX3S\sdtapi.dll", CallingConvention = CallingConvention.StdCall)]
|
|
public static extern int SDT_ReadBaseMsg(int iPort, byte[] pucCHMsg, ref uint puiCHMsgLen, byte[] pucPHMsg, ref uint puiPHMsgLen, int iIfOpen);
|
|
|
|
[DllImport(@"HXFDX3S\sdtapi.dll", CallingConvention = CallingConvention.StdCall)]
|
|
public static extern int SDT_ReadBaseFPMsg(int iPort, byte[] pucCHMsg, ref uint puiCHMsgLen, byte[] pucPHMsg, ref uint puiPHMsgLen, byte[] pucFPMsg, ref uint puiFPMsgLen, int iIfOpen);
|
|
|
|
[DllImport(@"HXFDX3S\sdtapi.dll", CallingConvention = CallingConvention.StdCall)]
|
|
public static extern int SDT_GetSAMIDToStr(int iPort, StringBuilder pcSAMID, int iIfOpen);
|
|
|
|
[DllImport(@"HXFDX3S\sdtapi.dll", CallingConvention = CallingConvention.StdCall)]
|
|
public static extern int SDT_ReadNewAppMsg(int iPort, byte[] pucAppMsg, ref uint puiAppMsgLen, int iIfOpen);
|
|
|
|
//照片解码API---------------------------------------------------------------------------------------
|
|
|
|
[DllImport(@"HXFDX3S\DLL_File.dll", CallingConvention = CallingConvention.Cdecl)]//注意这里的调用方式为Cdecl
|
|
public static extern int unpack(byte[] pi_szSrcWltData, byte[] szDstPicData, int iIsSaveToBmp);
|
|
|
|
|
|
}
|
|
}
|