FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Process by window handle
Posts: 1392
Joined: Mon May 14, 2007 09:49 AM
Process by window handle
Posted: Mon Dec 20, 2021 09:58 AM

Hi,

Is it possible to get the process object to which it belongs by the window handle ?

Posts: 1515
Joined: Thu Oct 30, 2008 02:37 PM
Re: Process by window handle
Posted: Mon Dec 20, 2021 11:42 AM

oWndFromHwnd()

Posts: 1392
Joined: Mon May 14, 2007 09:49 AM
Re: Process by window handle
Posted: 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

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Process by window handle
Posted: 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

Continue the discussion