Re: SeInfo - window handle

From: Rob Kennedy (me3_at_privacy.net)
Date: 08/05/04


Date: Thu, 05 Aug 2004 16:50:40 -0500

frederick wrote:
> Is there a way to get the handle of a window created by an application
> started with ShellExecuteEX(@SeInfo) ?

Remember that some programs don't have any windows, so whatever solution
you find won't be guaranteed to get a valid result. Also remember that
ShellExecuteEx might not start any application at all -- it might re-use
an application that was already running -- and it won't tell you
anything about that program.

> Googling hasn't found a solution for me, but maybe I am looking for the
> wrong thing.

I would start here:

http://groups.google.com/groups?q=shellexecuteex+window+handle&as_ugroup=*delphi*

If none of the top results looked promising, I would alter the query to
the following since ShellExecuteEx might return a process handle. (It's
the process handle that you need to "convert" to a window handle; your
question isn't limited to ShellExecuteEx.)

http://groups.google.com/groups?q=process+window+handle&as_ugroup=*delphi*

-- 
Rob


Relevant Pages

  • Re: SeInfo - window handle
    ... > frederick wrote: ... >> Is there a way to get the handle of a window created by an ... > the following since ShellExecuteEx might return a process handle. ... Thanks Rob ...
    (comp.lang.pascal.delphi.misc)
  • Re: SHELLEXECUTEINFO and SHCREATEPROCESSINFOW and functions
    ... the hwnd member is the owner window passed to MessageBox or DialogBox ... ShellExecuteEx, not ShellExecute. ... SHCREATEPROCESSINFOW before calling SHCreateProcessAsUserW, then ...
    (microsoft.public.win32.programmer.kernel)
  • Re: Maximise from another applications
    ... I'm not too familiar with ShellExecuteEx.. ... sensitive to either the class name of the window or the caption text. ... An app will have to put back ...
    (microsoft.public.vc.mfc)
  • Re: Maximise from another applications
    ... If you are trying to find a program you have control over, a standard Windows program (like Explorer), or something that will only run once you can try FindWindow. ... // Find an Explorer window that is open. ... "jmarc" wrote in message ... ShellExecuteEx() is trying to start the program. ...
    (microsoft.public.vc.mfc)
  • Re: Maximise from another applications
    ... I will go thru the longer way with ShellExecuteEx, ... sensitive to either the class name of the window or the caption text. ... An app will have to put back ...
    (microsoft.public.vc.mfc)