How to return the handle of a window when we click on it, without any DLL injection?
Posted
by Doo Dee
on Stack Overflow
See other posts from Stack Overflow
or by Doo Dee
Published on 2010-05-02T23:15:07Z
Indexed on
2010/05/02
23:18 UTC
Read the original article
Hit count: 306
Hello!
For one of my projects, I need to create a function that will return a handle to a window when the user click on it (any window displayed on screen, and anywhere inside that window). I know it is possible to use a global hook, but I think there must be a more simple way of doing that, without using any DLL injection.
In fact, I could intercept the left mouse click or intercept when a window is activated. Can I use one of those 2 solutions without any DLL injection?
© Stack Overflow or respective owner