Rob,

Thanks for your answer.
But what if my application did not start those apps.
How can I get the windows handle in that case.

I know that windows handles and process handles are
two different things. Is there any way to get the
windows handle if you know the process handle ?
This would solve my problem...

Wim

--- Rob Kennedy <[EMAIL PROTECTED]> wrote:

> Wim Sterns wrote:
> > Suppose I started 2 times notepad.exe on my
> computer.
> > How can I get the handle of those two applications
> > (knowing only the exe name) without using
> findwindow
> > to search for the main window caption ?
> 
> When you used CreateProcess or ShellExecuteEx to
> start the program, the
> API function returned the handle to the process.
> Check MSDN for details.
> 
> Note that window handles and process handles are two
> completely different
> things.
> 
> -- 
> Rob



        
                
__________________________________ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com
_______________________________________________
Delphi mailing list -> [email protected]
http://www.elists.org/mailman/listinfo/delphi

Reply via email to