#ifndef API_H #define API_H #ifdef IDR_API_EXPORTS #define IDR_API __declspec(dllexport) __stdcall #else #define IDR_API __declspec(dllimport) __stdcall #endif #include #include #include #include #include using namespace std; #ifdef __cplusplus extern "C"{ #endif int IDR_API GetIdCardInfo(int port, unsigned int baud, char* extendCmd, char* idCardInfo, int timeout, int ifCreatePhoto); int IDR_API GhcVersion(char *psVersionInfo); #ifdef __cplusplus } #endif #endif