Public Types | |
enum | PageProtection { ReadOnly, ReadWrite } |
enum | CreationSemantics { CreateFailsIfExists, CreateFailsIfExistsAndDifferentSize } |
Public Member Functions | |
CSharedMemory (const IKernelObjectName &name, DWORD size, PageProtection protection, CreationSemantics creation=CreateFailsIfExists, SECURITY_ATTRIBUTES *pSecurityAttributes=nullptr) | |
Creates a new named shared memory segment of the specified size. | |
CSharedMemory (const IKernelObjectName &name, PageProtection protection) | |
Opens an existing named shared memory segment. | |
CSharedMemory (const CSharedMemory &rhs) | |
~CSharedMemory () | |
CSharedMemory & | operator= (const CSharedMemory &rhs) |
void const * | GetMemory () const |
Access the memory. | |
void * | GetMemory () |
Access the memory. | |
DWORD | GetSize () const |
Get the size of the memory segment. |
enum PageProtection |
enum CreationSemantics |
CSharedMemory | ( | const IKernelObjectName & | name, | |
DWORD | size, | |||
PageProtection | protection, | |||
CreationSemantics | creation = CreateFailsIfExists , |
|||
SECURITY_ATTRIBUTES * | pSecurityAttributes = nullptr | |||
) |
Creates a new named shared memory segment of the specified size.
CSharedMemory | ( | const IKernelObjectName & | name, | |
PageProtection | protection | |||
) |
Opens an existing named shared memory segment.
CSharedMemory | ( | const CSharedMemory & | rhs | ) |
~CSharedMemory | ( | ) |
CSharedMemory& operator= | ( | const CSharedMemory & | rhs | ) |
void const * GetMemory | ( | ) | const |
Access the memory.
void * GetMemory | ( | ) |
Access the memory.
DWORD GetSize | ( | ) | const |
Get the size of the memory segment.