windows vista RC2: Global inject problem

c++ / delphi package - dll injection and api hooking
Post Reply
Mazinger
Posts: 33
Joined: Wed Jan 26, 2005 6:26 am

windows vista RC2: Global inject problem

Post by Mazinger »

Hi,

I'm trying to port my application to windows vista. I have windows vista RC2.

If I use

InjectLibrary(CURRENT_SESSION and (not CURRENT_PROCESS), FDLLHookAPIGlobal)

the result is False and the library is not globally injected.

If I try to inject against one process with ProcessHandle form, all works fine. The only problem is with global form.

I have last beta from Madshi (.13).

Any help will be apprecied.

Thanks.
XanSama
Posts: 15
Joined: Sat Mar 04, 2006 11:19 am

Post by XanSama »

The problem is probably that madCodeHook makes use of a kernel driver for global hooking, and Windows Vista doesn't play nice with drivers (it's a "security feature"). So unless Madshi has some way around that, I recomend you just make your own global hooking code (eg. hook all variants of CreateProcess and w/e else, and then just inject your dll into all visible processes one at a time).
madshi
Site Admin
Posts: 10764
Joined: Sun Mar 21, 2004 5:25 pm

Post by madshi »

I had tested it with one of the earlier Vista betas and it worked fine there. Maybe they've added more restrictions in RC1/2. Will have a look at that later. Vista is not yet officially supported by madCodeHook. It's no fun aiming at a moving target, you know.
Post Reply