MadCodeHook IPC not worked in my Shell Extension

c++ / delphi package - dll injection and api hooking

MadCodeHook IPC not worked in my Shell Extension

Postby thanh2248 » Wed Dec 13, 2017 9:37 am

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

Re: MadCodeHook IPC not worked in my Shell Extension

Postby madshi » Wed Dec 13, 2017 9:58 am

So your shell extension DLL calls CreateIpcQueue? And your main application calls SendIpcMessage? And CreateIpcQueue returns true? What does SendIpcMessage return?
madshi
Site Admin
 
Posts: 9808
Joined: Sun Mar 21, 2004 5:25 pm

Re: MadCodeHook IPC not worked in my Shell Extension

Postby thanh2248 » Wed Dec 13, 2017 10:09 am

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

Re: MadCodeHook IPC not worked in my Shell Extension

Postby madshi » Wed Dec 13, 2017 10:18 am

Are you sure DebugOutputString works as expected? Try creating an empty file on the desktop, or try "ExitProcess(0)". Does that close down Explorer?
madshi
Site Admin
 
Posts: 9808
Joined: Sun Mar 21, 2004 5:25 pm

Re: MadCodeHook IPC not worked in my Shell Extension

Postby thanh2248 » Wed Dec 13, 2017 10:29 am

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


Return to madCodeHook

Who is online

Users browsing this forum: No registered users and 7 guests