hook DLL is not loaded into the address space of the targeted process
Posted on 2004-04-26
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.
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.