Advertisement
Guest User

stdafx

a guest
Aug 21st, 2014
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.12 KB | None | 0 0
  1. // stdafx.h : include file for standard system include files,
  2. // or project specific include files that are used frequently, but
  3. // are changed infrequently
  4. //
  5.  
  6. #pragma once
  7. using namespace std;
  8. #include "targetver.h"
  9.  
  10. #define WIN32_LEAN_AND_MEAN             // Exclude rarely-used stuff from Windows headers
  11. // Windows Header Files:
  12. #include <windows.h>
  13. #include <vector>
  14. #include <string>
  15. #include <memory.h>
  16.  
  17.  
  18.  
  19. #ifdef BUILD_DLL
  20. #define _DLLAPI __declspec(dllexport)
  21. #else
  22. #define _DLLAPI __declspec(dllexport)
  23. #endif
  24.  
  25. extern "C"
  26. {
  27.     _DLLAPI int     getID();
  28.     _DLLAPI bool    sendMessage2(int id_from, int id_to, char *msg);
  29.     _DLLAPI bool    sendMessage3(MtMessage *msg);
  30.     _DLLAPI bool    obtainMessage(int id, char *msg);
  31.     _DLLAPI bool    obtainMessage2(int id, MtMessage *msg);
  32.     _DLLAPI bool    getMessage(int id, MtMessage *msg);
  33.     _DLLAPI void    logEverything();
  34.     _DLLAPI int     startServer(); 
  35.     _DLLAPI int     createInstance(int type, char *name);
  36.     _DLLAPI bool    isServerRunning();
  37.     _DLLAPI int     getInstancesAmount();
  38.     _DLLAPI void    __cdecl SetSharedMem(LPWSTR lpszBuf);
  39.     _DLLAPI void    __cdecl GetSharedMem(LPWSTR lpszBuf);
  40. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement