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.
windows vista RC2: Global inject problem
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).