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
Periodically send data to hook dll
Re: Periodically send data to hook dll
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.
Re: Periodically send data to hook dll
Helpful as always, thanks madshi