Hooking Windows Api Calls
-
Hi I found this : http://www.neowin.net/forum/index.php?showtopic=356523, which at the bottom says how I could get applications to work, using a different registry. It needs to inject a dll (how and could it be a .net one?) and to hook the api calls (how?) Please help JoeJoe
-
Hi I found this : http://www.neowin.net/forum/index.php?showtopic=356523, which at the bottom says how I could get applications to work, using a different registry. It needs to inject a dll (how and could it be a .net one?) and to hook the api calls (how?) Please help JoeJoe
joejoeiscool wrote:
It needs to inject a dll (how and could it be a .net one?)
No, you can't inject a managed-code .DLL into another process. They don't support the necessary exports required for code injection.
joejoeiscool wrote:
which at the bottom says how I could get applications to work, using a different registry
No, the article hypothesizes how to get emulate an alternate registry. The problem is, in order to get code injection to work and hook into the Kernel code functions to redirect them to your code, you need admin priv's. Which, if you have, then all of this becomes a moot point. Basically, you can't do what you're thinking of doing to get around security.
Dave Kreskowiak Microsoft MVP - Visual Basic