ANN: madCodeHook 3.1.6

c++ / delphi package - dll injection and api hooking
Post Reply
madshi
Site Admin
Posts: 10753
Joined: Sun Mar 21, 2004 5:25 pm

ANN: madCodeHook 3.1.6

Post by madshi »

Today I'm releasing madCodeHook 3.1.6 with the following changes:

(1) fixed: CreateProcessEx failed for .Net processes
(2) fixed a couple of rare crashes
(3) [C++] added separate "madCHook64md" and "madCHook64mt" static libs
(4) [driver] fixed: injection in Vista x64 sometimes failed

http://madshi.net/madCollection.exe (installer 2.7.8.0)
powerlinm
Posts: 33
Joined: Mon Dec 17, 2007 8:05 am

Re: ANN: madCodeHook 3.1.6

Post by powerlinm »

I meet a problem, I use this lib in XP.
my step is:
1.LoadInjectionDriver
2.InjectLibrary
3.StartInjectionDriver
If is use madCodeHook 3.1.4, all is OK.
But after upgrade to 3.1.6, i met this problem.
it return FALSE when call StartInjectionDriver , GetLastError() return 1058.
What can i do? is it a bug?
madshi
Site Admin
Posts: 10753
Joined: Sun Mar 21, 2004 5:25 pm

Re: ANN: madCodeHook 3.1.6

Post by madshi »

Did you reconfigure and resign the driver? You need to do that every time you recompile the hook dll.
powerlinm
Posts: 33
Joined: Mon Dec 17, 2007 8:05 am

Re: ANN: madCodeHook 3.1.6

Post by powerlinm »

Yes I did every time.
madshi
Site Admin
Posts: 10753
Joined: Sun Mar 21, 2004 5:25 pm

Re: ANN: madCodeHook 3.1.6

Post by madshi »

Please try one of the following demos:

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

Do they run ok on your XP machine, if you start them as is, without recompiling them? If they do work ok, try to recreate (recompile etc) all binary files yourself. Do they still work ok? If no, there seems to be a problem with the way you create the binary files. If yes, try to figure out why the demos work and your own project not. Must be a difference somewhere. If the demos don't work at all, even when using the original binary files created by me, then there seems to be a problem in madCodeHook itself. In that case: Can you reproduce this problem on a freshly installed clean XP VM?
powerlinm
Posts: 33
Joined: Mon Dec 17, 2007 8:05 am

Re: ANN: madCodeHook 3.1.6

Post by powerlinm »

thanks your reply.
I did it in same xp vm machine, It couldn't work too. But i change to a new machine, it worked.
Later I found that injection failed not has nothing to do with the 3.1.6 version. But because the operating system installed other anti-virus software, resulting in insufficient resources, driver not installed successfully.
Thank your help.
madshi
Site Admin
Posts: 10753
Joined: Sun Mar 21, 2004 5:25 pm

Re: ANN: madCodeHook 3.1.6

Post by madshi »

Ah, good to know thanks.
Post Reply