Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // stdafx.h : include file for standard system include files,
- // or project specific include files that are used frequently, but
- // are changed infrequently
- //
- #pragma once
- using namespace std;
- #include "targetver.h"
- #define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers
- // Windows Header Files:
- #include <windows.h>
- #include <vector>
- #include <string>
- #include <memory.h>
- #ifdef BUILD_DLL
- #define _DLLAPI __declspec(dllexport)
- #else
- #define _DLLAPI __declspec(dllexport)
- #endif
- extern "C"
- {
- _DLLAPI int getID();
- _DLLAPI bool sendMessage2(int id_from, int id_to, char *msg);
- _DLLAPI bool sendMessage3(MtMessage *msg);
- _DLLAPI bool obtainMessage(int id, char *msg);
- _DLLAPI bool obtainMessage2(int id, MtMessage *msg);
- _DLLAPI bool getMessage(int id, MtMessage *msg);
- _DLLAPI void logEverything();
- _DLLAPI int startServer();
- _DLLAPI int createInstance(int type, char *name);
- _DLLAPI bool isServerRunning();
- _DLLAPI int getInstancesAmount();
- _DLLAPI void __cdecl SetSharedMem(LPWSTR lpszBuf);
- _DLLAPI void __cdecl GetSharedMem(LPWSTR lpszBuf);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement