So, I'm trying to create a shared-memory segment in a C program, so I can for example write a simple character in it, and read that character from another C program.
I've been trying to use calloc()
and malloc()
but I do believe this only works for this program's own heap
.
Is there another function to do this same thing, but in the RAM
memory? Maybe through an hexadecimal value? Or am I wrong and these functions actually reserve memory visible to all processes?
Thanks in advance.
EDIT: -I'm using windows 8. -Language is not restricted to C, can be any other language.