开发者

c: how to call process callback function from another process

开发者 https://www.devze.com 2023-02-17 21:28 出处:网络
How can I call a process callback funct开发者_开发问答ion from another process? My exe is loaded at 0x400xxx, I\'m loading another exe which sets up callbacks but is at 0x400xxx too.

How can I call a process callback funct开发者_开发问答ion 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?


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消