1. #ifdef MAINLIB_EXPORTS
  2. #define MAINLIB_API __declspec(dllexport)
  3. #else
  4. #define MAINLIB_API __declspec(dllimport)
  5. #endif
  6.  
  7. extern "C" MAINLIB_API DWORD TestFunction(LPVOID);