Page 1 of 1

MadCodeHook IPC not worked in my Shell Extension

Posted: Wed Dec 13, 2017 9:37 am
by thanh2248
I have just created a Delphi project to add some context menu to window's right-click menu (shell extension)
The problem is, it's return true when i created an IPC in the shell's DLL but no message jump in the callback function, can anyone help?

Re: MadCodeHook IPC not worked in my Shell Extension

Posted: Wed Dec 13, 2017 9:58 am
by madshi
So your shell extension DLL calls CreateIpcQueue? And your main application calls SendIpcMessage? And CreateIpcQueue returns true? What does SendIpcMessage return?

Re: MadCodeHook IPC not worked in my Shell Extension

Posted: Wed Dec 13, 2017 10:09 am
by thanh2248
Yah, I did used CreateIPCQueue and SendIPCMessage, they both return true for me
But it's seem that the message, which should be handled by the callback funtion not appeared, i used OutputDebugString to return some text but nothing happened!

Re: MadCodeHook IPC not worked in my Shell Extension

Posted: Wed Dec 13, 2017 10:18 am
by madshi
Are you sure DebugOutputString works as expected? Try creating an empty file on the desktop, or try "ExitProcess(0)". Does that close down Explorer?

Re: MadCodeHook IPC not worked in my Shell Extension

Posted: Wed Dec 13, 2017 10:29 am
by thanh2248
I used an DLLProc function to detect DLL state too, and OutputDebugString still return every time i do right click but the OutputDebugString inside callback function still idle and will not show anything