api.h 535 B

12345678910111213141516171819202122232425262728293031
  1. #ifndef API_H
  2. #define API_H
  3. #ifdef IDR_API_EXPORTS
  4. #define IDR_API __declspec(dllexport) __stdcall
  5. #else
  6. #define IDR_API __declspec(dllimport) __stdcall
  7. #endif
  8. #include <windows.h>
  9. #include <STDIO.H>
  10. #include <iostream>
  11. #include <atlimage.h>
  12. #include <string>
  13. using namespace std;
  14. #ifdef __cplusplus
  15. extern "C"{
  16. #endif
  17. int IDR_API GetIdCardInfo(int port, unsigned int baud, char* extendCmd, char* idCardInfo, int timeout, int ifCreatePhoto);
  18. int IDR_API GhcVersion(char *psVersionInfo);
  19. #ifdef __cplusplus
  20. }
  21. #endif
  22. #endif