SendIPCMessage sometimes suspend

c++ / delphi package - dll injection and api hooking
Post Reply
Fengyun
Posts: 8
Joined: Wed Apr 09, 2014 10:03 am

SendIPCMessage sometimes suspend

Post by Fengyun »

hello, In my hook dll, I call SendIPCMessage, sometimes this function wait forever, the process suspend....

bool bRet = false;
SendIPCMessage("ipcname", (PVOID)buf, nBufLen, &bRet, sizeof(bool), INFINITE);

but my host process's log show that this ipc has been processed.

why SendIPCMessage still wait? I call SendIPCMessage in my callback fucntion, the hooked fuction is "CloseHandle".
madshi
Site Admin
Posts: 10754
Joined: Sun Mar 21, 2004 5:25 pm

Re: SendIPCMessage sometimes suspend

Post by madshi »

I told you in the other thread to set "handleMessages" to "false". Have you tried that?
Post Reply