Page 1 of 1

How to get window handle from process id/handle

Posted: Thu Apr 06, 2006 9:23 am
by Bonne_den_kule
How can I get the window handle from a process id or process handle without using FindWindow_()?

Posted: Thu Apr 06, 2006 4:19 pm
by Trond
Which window handle? A process can have tons of window handles.

Posted: Thu Apr 06, 2006 5:48 pm
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?

Posted: Thu Apr 06, 2006 5:53 pm
by Glow
argh - forget all I wrote: You don“t wanna use FindWindow_

Posted: Thu Apr 06, 2006 10:21 pm
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).

Posted: Thu Apr 06, 2006 10:22 pm
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.