#pragma once // #include #include #include #include "stdafx.h" #include "log4vendor.h" /********************************************************************************************************************** * 动态库输出函数 **********************************************************************************************************************/ #ifdef __cplusplus extern "C" { #endif class BS_ID81IDCLibImpl { public: BS_ID81IDCLibImpl(void); ~BS_ID81IDCLibImpl(void); int EnumScannerDev(ScannerInfoRec *ScannerInfo, unsigned *DeviceNumber); int OpenDev(unsigned DeviceID); int CloseDev(unsigned DeviceID); int CheckIdCard(unsigned DeviceID,int CheckTime); int CheckCardOut(unsigned DeviceID,int CheckTime); int StartScan(unsigned DeviceID); int ReadCard(unsigned DeviceID, char* cFrontImgBuf,char* cRearImgBuf, int* iFrontLen, int* iRearLen); int SaveToFile(unsigned DeviceID, char *cBmpBuf, int iBufLen,char *FileName, int Format); int RetainCard(unsigned DeviceID); int EjectIdCard(unsigned DeviceID); int BackAndHoldCard(unsigned DeviceID); int LastErrorCode(); int LastErrorStr(char* errStr); int FWVersion(unsigned DeviceID,char *cVersionInfo); int GetInfo(unsigned DeviceID, IDInfo *mIDInfo, char *ImageName); int ResetDev(unsigned DeviceID); int Update(unsigned DeviceID,char *FileName); int CIS(unsigned DeviceID); int Sensor(unsigned DeviceID); int SWVersion(char *cVersionInfo); int DeviceStatus(unsigned DeviceID,DEVSTATUS *DevStatus); int ResetWithAction(unsigned DeviceID,int iMode); int GetMyIDCardInfo(unsigned DeviceID,int iCardType,void* idinfo,char* ImageName); // -------2019-07-09---------------------- int GetMyIDCardType(unsigned DeviceID, int* iCardType); int GetMyGATIDInfo(unsigned DeviceID, IDInfoGAT* mIDInfoGAT, char *ImageName); int GetAllTypeCardInfo(unsigned DeviceID,int iCardType,void* idinfo,char* ImageName); int SetIDLog(bool Output, char* LogPath); int SetAutoFeedEnabled(unsigned DeviceID,int nMode); public: BOOL m_bLoadLibRet; // -------2019-07-09---------------------- }; }