🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #10932

Re: Finding a Spawned Window

#10932
From: Bob Gonder
Date: Fri, 05 Mar 2004 20:42
14 lines
1681 bytes
Remy Lebeau (TeamB) wrote:

>
>"Mortz" <rmorteo@hotmail.com> wrote in message
>news:4048c64f$1@newsgroups.borland.com...
>
>> Hi, does anyone know how to get a window handle (HWND)
>> after being spawned with "ShellExecuteEx".
>
>Use CreateProcess() instead.  It can return the process ID for the spawned

If you are using ShellExecuteEx because you don't know the name of the
executable for the file, you can use
FindExecutable() to get the proper exe to use in CreateProcess.
Technical Details
Message-ID: <jcph4010affo89fd2e7qi161av3qrr0teu@4ax.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!news.eunet.no!uio.no!news.tele.dk!news.tele.dk!small.news.tele.dk!lnewsoutpeer00.lnd.ops.eu.uu.net!lnewsinpeer00.lnd.ops.eu.uu.net!bnewsoutpeer00.bru.ops.eu.uu.net!bnewsinpeer00.bru.ops.eu.uu.net!emea.uu.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <4048c64f$1@newsgroups.borland.com> <4048d25f@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,6b6fbcbb8d2db5cb
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2004-03-05 13:03:07 PST
From: Bob Gonder <notbg@notmindspring.invalid>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: Finding a Spawned Window 
Date: Fri, 05 Mar 2004 12:42:35 -0800
Organization: MindSpring Enterprises, Inc.
Reply-To: notbg@notmindspring.invalid
Message-ID: <jcph4010affo89fd2e7qi161av3qrr0teu@4ax.com>
References: <4048c64f$1@newsgroups.borland.com> <4048d25f@newsgroups.borland.com>
X-Newsreader: Forte Agent 1.93/32.576 English (American)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 67.31.165.118
X-Trace: newsgroups.borland.com 1078519358 67.31.165.118 (5 Mar 2004 12:42:38 -0800)
Lines: 16
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!news.eunet.no!uio.no!news.tele.dk!news.tele.dk!small.news.tele.dk!lnewsoutpeer00.lnd.ops.eu.uu.net!lnewsinpeer00.lnd.ops.eu.uu.net!bnewsoutpeer00.bru.ops.eu.uu.net!bnewsinpeer00.bru.ops.eu.uu.net!emea.uu.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail