Solved

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

Posted on 2004-04-26
3
296 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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
split53 challenge 7 99
pairs challenge 5 79
why my code login on a web site with access vba don't work on microsoft access 2016 26 68
Advice in Xamarin 21 80
This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

832 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