2015-06-04 22:37:18 +00:00
|
|
|
#ifndef WIN32_SHARED_MEMORY_H
|
|
|
|
#define WIN32_SHARED_MEMORY_H
|
|
|
|
|
|
|
|
#include "SharedMemoryInterface.h"
|
|
|
|
|
|
|
|
class Win32SharedMemory : public SharedMemoryInterface
|
|
|
|
{
|
|
|
|
struct Win32SharedMemoryInteralData* m_internalData;
|
2018-09-23 21:17:31 +00:00
|
|
|
|
2015-06-04 22:37:18 +00:00
|
|
|
public:
|
2018-09-23 21:17:31 +00:00
|
|
|
Win32SharedMemory();
|
|
|
|
virtual ~Win32SharedMemory();
|
2015-06-04 22:37:18 +00:00
|
|
|
|
2018-09-23 21:17:31 +00:00
|
|
|
virtual void* allocateSharedMemory(int key, int size, bool allowCreation);
|
|
|
|
virtual void releaseSharedMemory(int key, int size);
|
2015-06-04 22:37:18 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
class Win32SharedMemoryServer : public Win32SharedMemory
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
Win32SharedMemoryServer();
|
|
|
|
virtual ~Win32SharedMemoryServer();
|
|
|
|
};
|
|
|
|
|
|
|
|
class Win32SharedMemoryClient : public Win32SharedMemory
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
Win32SharedMemoryClient();
|
|
|
|
virtual ~Win32SharedMemoryClient();
|
|
|
|
};
|
|
|
|
|
2018-09-23 21:17:31 +00:00
|
|
|
#endif //WIN32_SHARED_MEMORY_H
|