Code injection

12/26/2005 12:48 abitofboth#1
Just to gathering a 'feeling' of bestpractise/standards from the elite .. ... is madcodehook de facto standard if you wanna thread inject ? or what other alternatives exists ? Thanks !
12/26/2005 13:03 Ultima#2
madshis code hook is the only i know but you can do it all by yourself with the windows api

or the simple way madshis code hook ;)
12/28/2005 09:07 hal#3
There is several ways to inject code into a process space .I usually work under w98 osr 2 (light os) so i will explain which method i used (tested with daoc) :

System help facilities like setwindowshookex api (used originaly for tutorials).

This api is used to hook system behavior into an application.
When you used this api you tell system to redirect a kind of event (ie keyboard event) to your own function. To be able to do this system need that your function address be in the process space. So When your using this kind of system hook you need to create an dll that system when you call setwindowshookex will inject for you.

IMO i think under 2K or XP there several way to inject code using debug system, system registry (worked under w98) ...