Sergey
Sergey

Reputation: 685

c: how to call process callback function from another process

How can I call a process callback function from another process?

My exe is loaded at 0x400xxx, I'm loading another exe which sets up callbacks but is at 0x400xxx too.

How to call this far magic?

Upvotes: 2

Views: 2531

Answers (1)

Guy Sirton
Guy Sirton

Reputation: 8401

In most operating systems (I think you're talking about Microsoft Windows here?) you can not make function calls between two processes. Each process has it's own memory space and they are isolated from each other.

You can communicate between two processes using inter-process communication mechanisms such as pipes. In Windows you can also use synchronization objects such as events or semaphores between processes. If you elaborate on what you are trying to do I can provide some suggestions.

Upvotes: 4

Related Questions