Finding a variable address from another process

screenshot of a visual studio with a memory window open

Hi, I wonder if someone can kindly give me some information about something, please?

I have this code in exe1:

int number = 100;
int* p = &number;  // p = 0x0050f594

p points to memory address 0x0050f594

In another exe2 program, I have this:

int* p = (int*)0x0050f594;

So, for me, p from exe2 points to a variable number from exe1.

I think this has something to do with various applications running in their own address space, but I would still like to know how to make exe2 p pointer to a numeric variable from exe1?

+4
source share
2 answers

, , (IPC). Linux, Windows. , IPC, , .

, .

, .

0

Source: https://habr.com/ru/post/1629584/


All Articles