Process by window handle

Post Reply
Natter
Posts: 1244
Joined: Mon May 14, 2007 9:49 am

Process by window handle

Post by Natter »

Hi,

Is it possible to get the process object to which it belongs by the window handle ?
hmpaquito
Posts: 1482
Joined: Thu Oct 30, 2008 2:37 pm

Re: Process by window handle

Post by hmpaquito »

oWndFromHwnd()
Natter
Posts: 1244
Joined: Mon May 14, 2007 9:49 am

Re: Process by window handle

Post by Natter »

What does oWndFromHwnd have to do with it ?
I'm looking through the Enum list of windows and wanted to find out which process a particular window belongs to
User avatar
Antonio Linares
Site Admin
Posts: 42602
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Has thanked: 43 times
Been thanked: 88 times
Contact:

Re: Process by window handle

Post by Antonio Linares »

You have to use: GetWindowThreadProcessId()

https://webcache.googleusercontent.com/search?q=cache:iBU-5nGz4kMJ:https://www.py4u.net/discuss/705611+&cd=4&hl=en&ct=clnk&gl=es

There are three different solutions on the above url
regards, saludos

Antonio Linares
www.fivetechsoft.com
Post Reply