Article View: borland.public.cppbuilder.nativeapi
Article #7944Re: Createprocess and /dde apps
From: Remy Lebeau (TeamB)
Date: Thu, 09 Dec 2004 08:36
Date: Thu, 09 Dec 2004 08:36
24 lines
1848 bytes
1848 bytes
"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:
<41b80e77$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!news.tele.dk!news.tele.dk!small.news.tele.dk!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>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,273ad0e680078816 X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <41b799c6$1@newsgroups.borland.com> <41b7b776$1@newsgroups.borland.com> <41b7d874@newsgroups.borland.com> Subject: Re: Createprocess and /dde apps Date: Thu, 9 Dec 2004 00:36:26 -0800 Lines: 26 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 NNTP-Posting-Host: 68.69.17.41 Message-ID: <41b80e77$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1102581367 68.69.17.41 (9 Dec 2004 00:36:07 -0800) Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail