Skip to content
This repository was archived by the owner on Apr 13, 2026. It is now read-only.

ssnob/shared-mem

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Shared Memory

User mode interprocess communication using shared memory in Windows. This allows you to have a dedicated process to writing, and a dedicated process to reading the same memory. Useful for extracting data out of a process. Example source code updates an entity buffer with random information from a DLL, which is later printed out by the main process (separate EXE).

img

for (int i = 0; i < NUM_ENTITIES; i++)
{
    auto* ent_pointer = &header->entities[i];
    memcpy(ent_pointer->name, "SSNO\0", 5);
    ent_pointer->x = (float)rand() / RAND_MAX * (420);
    ent_pointer->y = (float)rand() / RAND_MAX * (420);
    ent_pointer->z = (float)rand() / RAND_MAX * (420);
}

About

Usermode interprocess communication via shared memory for Windows.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors