🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #8104

CreateProcess and ShellExecuteEx

#8104
From: Glenn MacGregor
Date: Mon, 22 Nov 2004 22:42
13 lines
1598 bytes
Hi All,

I need to open a browser from my application. I use ShellExecuteEx now but
that doesn't seem to always return the handle so I can't pass it to
WaitForSingleObject. So I am going to change it to use CreateProcess the
problem is I don't know what browser applications are installed on the
machine. ShellExecuteEx just executes the default browser (which is very
nice). How can I get the default browser and path in my application so I
know waht to execute?

Thanks

Glenn
Technical Details
Message-ID: <41a26b14$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!gatel-ffm!gatel-ffm!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!newsfeed00.sul.t-online.de!t-online.de!newsfeed.freenet.de!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!border1.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

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,41cfb06d6d8b1b25,start
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Glenn MacGregor" <gtm@highstreetnetworks.com>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: CreateProcess and ShellExecuteEx
Date: Mon, 22 Nov 2004 17:42:13 -0500
Lines: 15
Organization: HighStreet Networks
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
NNTP-Posting-Host: 216.204.182.62
Message-ID: <41a26b14$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1101163284 216.204.182.62 (22 Nov 2004 14:41:24 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!gatel-ffm!gatel-ffm!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!newsfeed00.sul.t-online.de!t-online.de!newsfeed.freenet.de!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!border1.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