Lukasz Lach
asked on
Global function hook...
My question is how to globally hook some function from any other dll (kernel32, user32, winsock). I watched madCodeHook but it allows me only to hook a function in one process only. And it would be fine if it worked on W2k/XP too ;-))
I offer +500 points for a complete solution...
I offer +500 points for a complete solution...
So you want to hook into the Windows API globally? Sounds like a RootKit. ;-) Check out http://rootkit.com/ for some examples, with source code. Not in Delphi, but the API's are the same.
ASKER
Madshi i know you can ;-)
Help...
Help...
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
It is realy cool, but I have one problem while compiling the dll:
begin
DllProc := @HandleEvents;
DllProc(DLL_PROCESS_ATTACH ); // -> Missing operator or semicolon
end.
I'm using D5, in my case
var DllProc: Pointer
in SysUtils
begin
DllProc := @HandleEvents;
DllProc(DLL_PROCESS_ATTACH
end.
I'm using D5, in my case
var DllProc: Pointer
in SysUtils
Oh, interesting, thanks for the hint. Then please change it to:
HandleEvents(DLL_PROCESS_A TTACH);
I'll change it in my sources, too.
HandleEvents(DLL_PROCESS_A
I'll change it in my sources, too.