Inject 32 bit DLL to 32 bit process under Vista x64 with EasyHook?

Sep 18, 2008 at 11:55 AM

Hi Chris!

I would like to make a little program that inject my Direct3D DLL to any 32 bit process that use D3D and hook its Pesent function to take screenshots. I have success with other hooking libs under Windows XP, but not EasyHook and/or Vista x64. Very important to me to do this for my little project, but I can't inject my DLL under Vista. I tried with EasyHook too, because it is impressive, but no success.

Try inject from c#:

NativeAPI_x86.RhInjectLibrary(clientProcess.Id, 0, (int)InjectionOptions.Default, "D3DHook.dll", null, (IntPtr)null, 0);

But the target process crashes in EasyHook at this point (thread.c):

 if(!RTL_SUCCESS(NtCreateThreadEx(hProc, (LPTHREAD_START_ROUTINE)RemoteInjectCode, RemoteInfo, &hRemoteThread)))

Could you tell me what is worng?

Best regards,