🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.delphi.nativeapi
Article #99

Re: WinExecAndWaitV2, ok but a question:

#99
From: Jeremy Collins
Date: Fri, 23 Jan 2004 10:37
17 lines
1546 bytes
Pierre Marie wrote:


> I have tried to use the ForceForeGround fn, but the createProcess does not
> retreive the window handle, so i do not know the wnd handle.

No, but CreateProcess returns a process ID, which you can pass to
WaitForInputIdle, so your app can wait for the program to start.

CreateProcess also returns a thread ID, so you can call
EnumThreadWindows to return a window handle, and activate the
application.

-- 
jc

Remove the -not from email
Technical Details
Message-ID: <4010f987$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <4010e531@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f94dd,6b19d632dfc307ea
X-Google-Attributes: gidf94dd,public
X-Google-ArrivalTime: 2004-01-23 02:39:27 PST
Date: Fri, 23 Jan 2004 10:37:59 +0000
From: Jeremy Collins <jd.collins@ntlworld-not.com>
Reply-To:  jd.collins@ntlworld-not.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.6b) Gecko/20031205 Thunderbird/0.4
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: borland.public.delphi.nativeapi
Subject: Re: WinExecAndWaitV2, ok but a question:
References: <4010e531@newsgroups.borland.com>
In-Reply-To: <4010e531@newsgroups.borland.com>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 81.101.19.29
Message-ID: <4010f987$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1074854279 81.101.19.29 (23 Jan 2004 02:37:59 -0700)
Lines: 17
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail