Entwickler-Ecke

Windows API - Redirecting API calls


bobby - Fr 18.06.04 15:59
Titel: Redirecting API calls
This on should be interesting for everyone.
Let's explain it on example: you have a application like Norton PreScan utility (scans just system partition on the system where is started from). Now, let's say we have started that application and we want to scan other than system partition. The question is: is it possible to intercept calls in order to make this application working with other partition ?
I think that this app asks the system for some variable like %SYSTEMROOT% in order to determine system partition. Can I intercept that in order to "lie" the application about the variable?

Also on this topic, is it the some kind of API calls monitor application that will help me to determine this ?


raziel - Fr 18.06.04 16:14
Titel: Re: Redirecting API calls
It should be possible. Search Google for Suche bei Google API HOOK (only german results - use this [http://www.google.com/search?hl=en&ie=UTF-8&q=API+Hook&btnG=Google+Search] for english).
Maybe you'll only have to hook "SHGetSpecialFolderLocation", maybe you've gotta hook more.

bobby hat folgendes geschrieben:
Also on this topic, is it the some kind of API calls monitor application that will help me to determine this ?

Google: Suche bei Google API MONITOR (english [http://www.google.com/search?hl=en&lr=&ie=UTF-8&q=API+monitor&btnG=Search])

raziel