DelphiFAQ Home Search:

Hooking into Windows API calls

 

comments4 comments. Current rating: 5 stars (1 votes). Leave comments and/ or rate it.

A very clever person has written a DLL called ApiHooks which will sneak in between a running program and any the Win API functions you choose, and divert the function calls through your own DLL !
I didn't see source code for the ApiHooks, but I can live with that.
Documentation is minimal, but there was enough for me to get it going.
There is a Delphi example of its use. APIHooks lets you hook another program with no instability or apparent slowdown of Windows. You can hook just the API calls you need.

Get ApiHooks from

http://www.anticracking.sk/EliCZ/

ApiHooks lets you write a DLL and attach it to the process you want to hook. You then have to communicate between that attached DLL and your application. I am using a memory mapped file which makes an area of RAM accessible to both the DLL and my application.

Based on my experience, you'd have no trouble hooking gdi32.CreatePalette with ApiHooks.

Comments:

2006-03-22, 15:43:12
anonymous from Portugal  
rating
Can you please include a working Delphi example? The one provided is very scarse, I couldn't do a thing with it. Also, I'm no good at C++ so I coulnd't understand those other examples...

Many thanks!
2007-12-10, 19:09:22
hite1999pang@hanmail.net from Korea (R)  
dd
2008-09-26, 08:14:35
anonymous  


Keywords:

2008-09-26, 08:28:36
anonymous  


Keywords:

 

 

Email address (not necessary):

Rate as
Hide my email when showing my comment.
Please notify me once a day about new comments on this topic.
Please provide a valid email address if you select this option.
 
It seems that you are
from Los Angeles, US .

Info/ Feedback on this

Show city and country
Show country only
Hide my location
You can mark text as 'quoted' by putting [quote] .. [/quote] around it.
Please type in the code:
photo Add a picture:

Please do not post inappropriate pictures. Inappropriate pictures include pictures of minors and nudity. The owner of this web site reserves the right to delete such material.