// The following ifdef block is the standard way of creating macros which make exporting // from a DLL simpler. All files within this DLL are compiled with the BLACKFINDER_EXPORTS // symbol defined on the command line. this symbol should not be defined on any project // that uses this DLL. This way any other project whose source files include this file see // BLACKFINDER_API functions as being imported from a DLL, wheras this DLL sees symbols // defined with this macro as being exported. #ifdef BLACKFINDER_EXPORTS #define BLACKFINDER_API __declspec(dllexport) #else #define BLACKFINDER_API __declspec(dllimport) #endif // This class is exported from the BlackFinder.dll #define ERR_INVALID_HANDLE -1000 #define ERR_LOAD_LIST_FAIL -1001 #define ERR_LOAD_LIST_BACK_FAIL -1002 #define ERR_FIND_FAIL -1003 #define ERR_FIND2_FAIL -1004 #define ERR_BACK_ON_LINE_FAIL -1005 #define ERR_GET_VER_FAIL -1006 #define ERR_GET_BACK_LOAD_STATUS_FAIL -1007 #include "windows.h" extern "C" { BLACKFINDER_API HANDLE HASH_CreateList(); BLACKFINDER_API HRESULT HASH_DestroyList(HANDLE hHandle); BLACKFINDER_API HRESULT HASH_LoadList( /* [in] */ HANDLE hHandle, /* [in] */ char * pDBFFileName, /* [in] */ char * pStrKeyFieldName ); BLACKFINDER_API HRESULT HASH_LoadListBack( /* [in] */ HANDLE hHandle, /* [in] */ HANDLE hMsgWnd, /* [in] */ ULONG iMsgValue, /* [in] */ ULONG iListId, /* [in] */ char * pMainDBFFileName, /* [in] */ char * pSlaveDBFFileName, /* [in] */ char * pStrKeyFieldName ); BLACKFINDER_API HRESULT HASH_Find( /* [in] */ HANDLE hHandle, /* [in] */ char * pStrKeyValue, /* [out] */ char * pRetBuffer, int RetBufferLen ); BLACKFINDER_API HRESULT HASH_Find2( /* [in] */ HANDLE hHandle, /* [in] */ char * pStrKeyValue, /* [out] */char * pRetBuffer, int RetBufferLen ); BLACKFINDER_API HRESULT HASH_Find3( /* [in] */ HANDLE hHandle, /* [in] */ char * pStrWhere, /* [out] */char * pRetBuffer, int RetBufferLen ); BLACKFINDER_API HRESULT HASH_BackOnline( /* [in] */ HANDLE hHandle, /* [in] */ char * pBlackFilePath, /* [in] */ char * pBlackFileName ); BLACKFINDER_API HRESULT HASH_GetVerInfo( /* [in] */ HANDLE hHandle, /* [in] */ char * pVerFieldName, /* [out] */ char * pRetBuffer, /* [in] */ int RetBufferLen ); };