Article View: borland.public.cppbuilder.nativeapi
Article #7941Re: Createprocess and /dde apps
From: Angus
Date: Thu, 09 Dec 2004 04:45
Date: Thu, 09 Dec 2004 04:45
59 lines
2934 bytes
2934 bytes
Hi Remy, thanks for your reply. This is downer. First i use createprocess because i need the flag CREATE_SUSPENDED, so that i can create jobobjects tied to this process, and then resume. From there on in i harvest the pid, which as i understand, i cannot get from ShellExecute.. correct? What are my options here Remy? ddeexcec? many thanks angus. "Remy Lebeau (TeamB)" <no.spam@no.spam.com> wrote in message news:41b7b776$1@newsgroups.borland.com... > > "Angus" <aguspickton@yahoo.com> wrote in message > news:41b799c6$1@newsgroups.borland.com... > > > I am trying to createprocess with an application whose registry setting > is > > c:\Program Files\Appx.exe /dde > > This app opens files of type .pqr. > <snip> > > You can't use CreateProcess() to initiate DDE conversations. You can try > using ShellExecute(), though, specifying just the filename and letting the > OS decide which application to run and how to pass the filename to it. > > > When i open the files direct from explorer, Filex.pqr, and then Filey.pqr, > > Appx.exe opens as a single dde program, which is exactly the behaviour > > i would like to mimic with createprocess. > > Double-clicking a file in Explorer invokes ShellExecute(). > > > i've looked at the ddeexcec key, but could find nothing useful. > > That is because you probably did not understand what it was telling you. It > is actually quite helpful, but requires a lot of extra work on your part in > order to actually utilize it. Better to let ShellExecute() do the work for > you. > > > I use the process data from Createprocess so other ways of opening > > the app are of no use to me. > > You cannot use CreateProcess() for what you are asking. It does not support > DDE. What process data are you using exactly? Perhaps you can obtain it > through other means. > > > Gambit > >
Technical Details
Message-ID:
<41b7d874@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!border2.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<41b799c6$1@newsgroups.borland.com> <41b7b776$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> Subject: Re: Createprocess and /dde apps Date: Thu, 9 Dec 2004 17:45:49 +1300 Lines: 61 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: <41b7d874@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1102567540 219.88.83.204 (8 Dec 2004 20:45:40 -0800) Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!border2.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail