Periodically send data to hook dll

c++ / delphi package - dll injection and api hooking
Post Reply
Davita
Posts: 163
Joined: Tue Sep 13, 2005 7:31 pm

Periodically send data to hook dll

Post by Davita »

Hello

I need to send some data to remote process (hook dll) regularly, without crashing the process. I'm not aware if I have any options. It is not recommended to create ipc channel in remote proc, it's not recommended to create a thread in remote proc. So what options do I have? :))

P.S. this is not a system wide hook, I just need to hook only one .NET process.

Thanks
madshi
Site Admin
Posts: 10753
Joined: Sun Mar 21, 2004 5:25 pm

Re: Periodically send data to hook dll

Post by madshi »

If you inject into only one application, things are quite a bit more relaxed. In that case you may be able to use threads and maybe an IPC queue and stuff, because you can properly test whether there are any stability issues with this one specific process. Be careful with uninjecting the dll, though. You need to first cleanup everything (threads, IPC queue etc) and then maybe wait a second or so, and only then uninject, to give all threads enough time to close down properly.
Davita
Posts: 163
Joined: Tue Sep 13, 2005 7:31 pm

Re: Periodically send data to hook dll

Post by Davita »

Helpful as always, thanks madshi :)
Post Reply