MadCodeHook IPC not worked in my Shell Extension

c++ / delphi package - dll injection and api hooking
Post Reply
thanh2248
Posts: 3
Joined: Wed Dec 13, 2017 9:18 am

MadCodeHook IPC not worked in my Shell Extension

Post 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?
madshi
Site Admin
Posts: 10754
Joined: Sun Mar 21, 2004 5:25 pm

Re: MadCodeHook IPC not worked in my Shell Extension

Post by madshi »

So your shell extension DLL calls CreateIpcQueue? And your main application calls SendIpcMessage? And CreateIpcQueue returns true? What does SendIpcMessage return?
thanh2248
Posts: 3
Joined: Wed Dec 13, 2017 9:18 am

Re: MadCodeHook IPC not worked in my Shell Extension

Post 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!
madshi
Site Admin
Posts: 10754
Joined: Sun Mar 21, 2004 5:25 pm

Re: MadCodeHook IPC not worked in my Shell Extension

Post 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?
thanh2248
Posts: 3
Joined: Wed Dec 13, 2017 9:18 am

Re: MadCodeHook IPC not worked in my Shell Extension

Post 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
Post Reply