BS_ID81IDCLibImpl.h 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. 
  2. #pragma once
  3. //
  4. #include <string>
  5. #include <vector>
  6. #include <algorithm>
  7. #include "stdafx.h"
  8. #include "log4vendor.h"
  9. /**********************************************************************************************************************
  10. * 动态库输出函数
  11. **********************************************************************************************************************/
  12. #ifdef __cplusplus
  13. extern "C" {
  14. #endif
  15. class BS_ID81IDCLibImpl
  16. {
  17. public:
  18. BS_ID81IDCLibImpl(void);
  19. ~BS_ID81IDCLibImpl(void);
  20. int EnumScannerDev(ScannerInfoRec *ScannerInfo, unsigned *DeviceNumber);
  21. int OpenDev(unsigned DeviceID);
  22. int CloseDev(unsigned DeviceID);
  23. int CheckIdCard(unsigned DeviceID,int CheckTime);
  24. int CheckCardOut(unsigned DeviceID,int CheckTime);
  25. int StartScan(unsigned DeviceID);
  26. int ReadCard(unsigned DeviceID, char* cFrontImgBuf,char* cRearImgBuf, int* iFrontLen, int* iRearLen);
  27. int SaveToFile(unsigned DeviceID, char *cBmpBuf, int iBufLen,char *FileName, int Format);
  28. int RetainCard(unsigned DeviceID);
  29. int EjectIdCard(unsigned DeviceID);
  30. int BackAndHoldCard(unsigned DeviceID);
  31. int LastErrorCode();
  32. int LastErrorStr(char* errStr);
  33. int FWVersion(unsigned DeviceID,char *cVersionInfo);
  34. int GetInfo(unsigned DeviceID, IDInfo *mIDInfo, char *ImageName);
  35. int ResetDev(unsigned DeviceID);
  36. int Update(unsigned DeviceID,char *FileName);
  37. int CIS(unsigned DeviceID);
  38. int Sensor(unsigned DeviceID);
  39. int SWVersion(char *cVersionInfo);
  40. int DeviceStatus(unsigned DeviceID,DEVSTATUS *DevStatus);
  41. int ResetWithAction(unsigned DeviceID,int iMode);
  42. int GetMyIDCardInfo(unsigned DeviceID,int iCardType,void* idinfo,char* ImageName);
  43. // -------2019-07-09----------------------
  44. int GetMyIDCardType(unsigned DeviceID, int* iCardType);
  45. int GetMyGATIDInfo(unsigned DeviceID, IDInfoGAT* mIDInfoGAT, char *ImageName);
  46. int GetAllTypeCardInfo(unsigned DeviceID,int iCardType,void* idinfo,char* ImageName);
  47. int SetIDLog(bool Output, char* LogPath);
  48. int SetAutoFeedEnabled(unsigned DeviceID,int nMode);
  49. public:
  50. BOOL m_bLoadLibRet;
  51. // -------2019-07-09----------------------
  52. };
  53. }