Article View: borland.public.cppbuilder.nativeapi
Article #7964Re: Createprocess and /dde apps
From: Angus
Date: Thu, 09 Dec 2004 22:27
Date: Thu, 09 Dec 2004 22:27
34 lines
2177 bytes
2177 bytes
I think i've got it Remy, thanks. It at least gives me something to go on. regards angus. "Remy Lebeau (TeamB)" <no.spam@no.spam.com> wrote in message news:41b80e77$1@newsgroups.borland.com... > > "Angus" <aguspickton@yahoo.com> wrote in message > news:41b7d874@newsgroups.borland.com... > > > First i use createprocess because i need the flag CREATE_SUSPENDED, > > so that i can create jobobjects tied to this process, and then resume. > > Why not just have the job objects create their own new processes themselves? > > > From there on in i harvest the pid > > For what purpose exactly? > > > which as i understand, i cannot get from ShellExecute.. correct? > > No, that is not correct. It takes a few extra steps, but you can still get > the process ID of the application handling each file. If you use > ShellExecuteEx(), it can return the handle of the spawned process. You can > then enumerate the currently active processes looking for the one that > matches the process handle that ShellExecuteEx() returns. You will then > know the process ID that the enumeration returns. > > > Gambit > >
Technical Details
Message-ID:
<41b8d152$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<41b799c6$1@newsgroups.borland.com> <41b7b776$1@newsgroups.borland.com> <41b7d874@newsgroups.borland.com> <41b80e77$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,273ad0e680078816 X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit Reply-To: "Angus" <anguspickton@yahoo.com> From: "Angus" <aguspickton@yahoo.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <41b799c6$1@newsgroups.borland.com> <41b7b776$1@newsgroups.borland.com> <41b7d874@newsgroups.borland.com> <41b80e77$1@newsgroups.borland.com> Subject: Re: Createprocess and /dde apps Date: Fri, 10 Dec 2004 11:27:39 +1300 Lines: 36 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1437 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 NNTP-Posting-Host: 219.88.83.204 Message-ID: <41b8d152$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1102631250 219.88.83.204 (9 Dec 2004 14:27:30 -0800) Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail