Solved

hook DLL is not loaded into the address space of the targeted process

Posted on 2004-04-26
3
300 Views
Last Modified: 2008-03-03
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


0
Comment
Question by:Churo
3 Comments
 
LVL 22

Accepted Solution

by:
cookre earned 500 total points
ID: 10923391
If only you could get the hWnd for the target, a call to GetWindowThreadProcessId() would give you its PID.
0

Featured Post

Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Hide vba in gp 7 105
SCRIPT65535: Unexpected call to method or property access video html 5 explorer 3 81
draw a Christmas tree by using a nested loop? 26 77
Help Required 2 39
This is an explanation of a simple data model to help parse a JSON feed
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question