Process by window handle

Process by window handle

Postby Natter » Mon Dec 20, 2021 9:58 am

Hi,

Is it possible to get the process object to which it belongs by the window handle ?
Natter
 
Posts: 1215
Joined: Mon May 14, 2007 9:49 am

Re: Process by window handle

Postby hmpaquito » Mon Dec 20, 2021 11:42 am

oWndFromHwnd()
hmpaquito
 
Posts: 1482
Joined: Thu Oct 30, 2008 2:37 pm

Re: Process by window handle

Postby Natter » Mon Dec 20, 2021 12:28 pm

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
Natter
 
Posts: 1215
Joined: Mon May 14, 2007 9:49 am

Re: Process by window handle

Postby Antonio Linares » Mon Dec 20, 2021 12:35 pm

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
User avatar
Antonio Linares
Site Admin
 
Posts: 42082
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 96 guests