πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: WinExecAndWaitV2, ok but a question:

#102
From: Pierre Marie
Date: Fri, 23 Jan 2004 14:04
21 lines
1590 bytes
How do you do to activate the application ?
"Jeremy Collins" <jd.collins@ntlworld-not.com> a οΏ½crit dans le message de
news:4010f987$1@newsgroups.borland.com...
> 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: <401129e6@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <4010e531@newsgroups.borland.com> <4010f987$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: f94dd,6b19d632dfc307ea
X-Google-Attributes: gidf94dd,public
X-Google-ArrivalTime: 2004-01-23 06:10:06 PST
From: "Pierre Marie" <pm@nst.fr>
Newsgroups: borland.public.delphi.nativeapi
References: <4010e531@newsgroups.borland.com> <4010f987$1@newsgroups.borland.com>
Subject: Re: WinExecAndWaitV2, ok but a question:
Date: Fri, 23 Jan 2004 15:04:33 +0100
Lines: 23
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 193.251.72.70
Message-ID: <401129e6@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1074866662 193.251.72.70 (23 Jan 2004 06:04:22 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail