Gray C++ Libraries  0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
GrayLib::cSharedMemory Struct Reference

#include <cSharedMemory.h>

Public Member Functions

 UNITTEST_FRIEND (cSharedMemory)
 

Public Attributes

PROCESSID_t m_nMasterId
 PROCESSID_BAD = no master present. More...
 
cInterlockedVal< PROCESSID_t > m_LockId
 Locked for write. PROCESSID_BAD = not locked. should be cThreadLockMutex ?? More...
 
PROCESSID_t m_nDestId
 Who is the payload for? More...
 
size_t m_nLength
 Length of the data payload. More...
 
BYTE m_Data [1]
 Arbitrary length shared payload buffer. More...
 

Detailed Description

The memory block we all share. Shared by multiple processes on the same machine. One process is the master. Used for interprocess messaging for Hook. TODO Is this shared for 64 and 32 bit?

Member Function Documentation

◆ UNITTEST_FRIEND()

GrayLib::cSharedMemory::UNITTEST_FRIEND ( cSharedMemory  )

Member Data Documentation

◆ m_Data

BYTE GrayLib::cSharedMemory::m_Data[1]

Arbitrary length shared payload buffer.

◆ m_LockId

cInterlockedVal<PROCESSID_t> GrayLib::cSharedMemory::m_LockId

Locked for write. PROCESSID_BAD = not locked. should be cThreadLockMutex ??

◆ m_nDestId

PROCESSID_t GrayLib::cSharedMemory::m_nDestId

Who is the payload for?

◆ m_nLength

size_t GrayLib::cSharedMemory::m_nLength

Length of the data payload.

◆ m_nMasterId

PROCESSID_t GrayLib::cSharedMemory::m_nMasterId

PROCESSID_BAD = no master present.


The documentation for this struct was generated from the following file: