It does not work for games. The hooking bit works in DllMain but the MyDirectDrawCreateEx never gets run even though I know a particular game uses DirectDrawCreateEx. The only way I know of detecting DirectDrawCreateEx in a game is using DX spy. However I really need more control (source code). Too bad this one doesn't work. Perhaps its because most games call loadlibrary dynamically like someone else said. It would be wonderful if someone could make another version that works with more situations. At "http://yodas.reverse-engineering.info/proggies.htm"; softsnoop has source code and does a few things with dynamic loading dlls. Once again it doesn't work with directx games, but perhaps it may help people.
When we close Launcher program hooked process will crash.
because when we destroy dll handle, hooked process can not call hook functions.
How can we unhook and restore original functions adresses for each process
The SYSTEM-WIDE API hook available for Windows Platforms
Windows API Hook PRO SDK for Windows 9x/NT/XP/2000
Support Windows 9x
Support Windows 4.0 (incl. SP1-SP6a)
Support Windows 2000 (incl. SP1-SP3)
Support Windows XP (build#2600)
Install your own hooks to monitor program starts or terminates
Install your own hooks to monitor file access
Install your own hooks to ... use your imagination
Is capable of hooking most system APIs to do whatever you may think of Come with both 32bit/16bit libraries that you can develop SPYs or MONITORs running on Win9x/Win2000/WinNT/WinXP
Wonder how to do any of the following
Hook the network function like send(), recv() ... :
Monitor process creation/destruction;
Monitor module loading/unloading ;
Monitor file/directory/REGISTRY access ;
Trap and even alter the behavior of mouse or keyboard input:
Hook the system and control it to behave the way you like:
What else do you want to do ? you can do it as you can image it...