Churo
asked on
hook DLL is not loaded into the address space of the targeted process
I 've made a DLL for hooking into process and i cant get el GetCurrentProcess from them. Its works as a forward message and not as a DLL injected in every process.
My test:
When i detect WM_LBUTTONUP i send a message to my own exe where the LParam is the GetCurrentProcess() called from de DLL.
Type of Hook: WH_JOURNALRECORD
Type inject: SetWindowsHookEx (WH_JOURNALRECORD, @CustomProc, hHookLib, 0);
where hHookLib is the values from LoadModule.
i need get on every WM_LBUTTONUP the current process id to be sure i am in the same process space in order to patch a memory address.
Thanx,
Daniel Sp
My test:
When i detect WM_LBUTTONUP i send a message to my own exe where the LParam is the GetCurrentProcess() called from de DLL.
Type of Hook: WH_JOURNALRECORD
Type inject: SetWindowsHookEx (WH_JOURNALRECORD, @CustomProc, hHookLib, 0);
where hHookLib is the values from LoadModule.
i need get on every WM_LBUTTONUP the current process id to be sure i am in the same process space in order to patch a memory address.
Thanx,
Daniel Sp
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.