Page 1 of 1

InitializeMadCHook

Posted: Thu Mar 27, 2014 6:06 am
by manutai
If InitializeMadCHook is called in a dll and this dll is injected in the process (say notepad) by calling CreateProcessEx function then dll is not injected and CreateProcessEx returns success. The process is started in background not as application. In this scenario there are also other dll's which are systemwide injected. This works fine if we don't call InitializeMadCHook. OS - Win 7 32 bit, MadShi lib version - 3.1.6.

Re: InitializeMadCHook

Posted: Thu Apr 03, 2014 12:58 pm
by madshi
Sorry for the late reply, somehow missed this thread.

Hmmmm... So you're saying as soon as you call InitializeMadCHook() neither CreateProcessEx nor system wide DLL injection works? That's weird, it seems to work for everyone else. Can you please try with the one of the following demos:

http://madshi.net/HookProcessCreation.zip
http://madshi.net/PrintMonitor.zip

Do these demos work? If they do, try injecting one of the demos' hook dlls via CreateProcessEx. Does that work? Make sure the hook dll has read/execute NTFS rights for Everyone, just to be safe.