How to get window handle from process id/handle

Just starting out? Need help? Post your questions and find answers here.
Bonne_den_kule
Addict
Addict
Posts: 841
Joined: Mon Jun 07, 2004 7:10 pm

How to get window handle from process id/handle

Post by Bonne_den_kule »

How can I get the window handle from a process id or process handle without using FindWindow_()?
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Post by Trond »

Which window handle? A process can have tons of window handles.
Bonne_den_kule
Addict
Addict
Posts: 841
Joined: Mon Jun 07, 2004 7:10 pm

Post by Bonne_den_kule »

Trond wrote:Which window handle? A process can have tons of window handles.
Good point! :oops:
But if a process only has one window, can I get it then?
Glow
User
User
Posts: 10
Joined: Sun Dec 18, 2005 9:03 pm

Post by Glow »

argh - forget all I wrote: You don´t wanna use FindWindow_
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Post by PB »

> Which window handle? A process can have tons of window handles.

That's what I was thinking. :) I'll do a solution later (I think I know a way).
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
Bonne_den_kule
Addict
Addict
Posts: 841
Joined: Mon Jun 07, 2004 7:10 pm

Post by Bonne_den_kule »

PB wrote:> Which window handle? A process can have tons of window handles.

That's what I was thinking. :) I'll do a solution later (I think I know a way).
Thanks, nice of you.
Post Reply