Re: SeInfo - window handle
From: frederick (nomail_at_nomail.com)
Date: 08/06/04
- Next message: Rob Kennedy: "Re: SeInfo - window handle"
- Previous message: Rob Kennedy: "Re: SeInfo - window handle"
- In reply to: Rob Kennedy: "Re: SeInfo - window handle"
- Next in thread: Rob Kennedy: "Re: SeInfo - window handle"
- Reply: Rob Kennedy: "Re: SeInfo - window handle"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 6 Aug 2004 10:22:17 +1200
"Rob Kennedy" <me3@privacy.net> wrote in message
news:2nfod2FekclU1@uni-berlin.de...
> 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
Thanks Rob
The first entry of the second google groups search returns an unanswered
post from 1996, that fairly neatly summarises the frustration that I
have.
I was hoping for something simple, but I don't think I am going to find
it.
The answer perhaps lies in using EnumWindows and finding the process
handle
returned by ShellExecuteEx. The fun part for me (not a happy reader of
the SDK!) is figuring out how.
- Next message: Rob Kennedy: "Re: SeInfo - window handle"
- Previous message: Rob Kennedy: "Re: SeInfo - window handle"
- In reply to: Rob Kennedy: "Re: SeInfo - window handle"
- Next in thread: Rob Kennedy: "Re: SeInfo - window handle"
- Reply: Rob Kennedy: "Re: SeInfo - window handle"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|