Article View: borland.public.cppbuilder.nativeapi
Article #9911Re: Invoke open with...
From: Remy Lebeau (TeamB)
Date: Fri, 04 Jun 2004 20:56
Date: Fri, 04 Jun 2004 20:56
16 lines
1558 bytes
1558 bytes
"Mortz" <rmorteo@hotmail.com> wrote in message news:40c0c272$1@newsgroups.borland.com... > is it possible to still get the processID from the program > launched by the open with dialog? Not with ShellExecute(). Maybe with ShellExecuteEx(), I'm not sure. Otherwise, you would have to invoke the appropriate executable directly, such as via CreateProcess(). Using ShellExecute() with the "open" verb, it will return SE_ERR_NOASSOC if there is no "open" verb registered for the file type, thus you can can then display your own dialog asking the user for the needed executable and then launch it directly. Gambit
Technical Details
Message-ID:
<40c0e2ee$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<40c0b915@newsgroups.borland.com> <40c0baac@newsgroups.borland.com> <40c0c272$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,68fb5435e0701fb7 X-Google-Attributes: gid10cc67,public From: "Remy Lebeau \(TeamB\)" <gambit47.no.spam@no.spam.yahoo.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <40c0b915@newsgroups.borland.com> <40c0baac@newsgroups.borland.com> <40c0c272$1@newsgroups.borland.com> Subject: Re: Invoke open with... Date: Fri, 4 Jun 2004 13:56:12 -0700 Lines: 18 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: 67.22.135.163 Message-ID: <40c0e2ee$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1086382830 67.22.135.163 (4 Jun 2004 14:00:30 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail