Solved

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

Posted on 2004-04-26
3
309 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Entering a date in Microsoft Access can be tricky. A typo can cause month and day to be shuffled, entering the day only causes an error, as does entering, say, day 31 in June. This article shows how an inputmask supported by code can help the user a…
The SignAloud Glove is capable of translating American Sign Language signs into text and audio.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
Simple Linear Regression

617 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