🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: ShellExecute - IE

#16899
From: nicolasr
Date: Sun, 20 Apr 2003 00:16
34 lines
1751 bytes
Hi,

I used CreateProcess to open a URL in IE and it always opens in a new
window. In case it does not there's a command line switch (-new) which
you could try:

For example:

STARTUPINFO si;
ZeroMemory(&si, sizeof(STARTUPINFO));
si.cb = sizeof(STARTUPINFO);

PROCESS_INFORMATION pi;
ZeroMemory(&pi, sizeof(PROCESS_INFORMATION));

CreateProcess(NULL,
              "c:\\programme\\internet explorer\\iexplore.exe -new
http://www.av.com",
              NULL,
              NULL,
              FALSE,
              0,
              NULL,
              NULL,
              &si,
              &pi
              );

//close handles opened by CreateProcess
CloseHandle(pi.hProcess);
CloseHandle(pi.hThread);

hope this helps,
Nick
Technical Details
Message-ID: <3ea1e6ab@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-06!sn-xit-08!supernews.com!216.166.71.118.MISMATCH!small1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <3ea1ca4b@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,4cd242a568b4bc9c
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-04-19 17:31:16 PST
From: "nicolasr" <nicolasrNOSPAMATSIGNgmx.net>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3ea1ca4b@newsgroups.borland.com>
Subject: Re: ShellExecute - IE
Date: Sun, 20 Apr 2003 02:16:26 +0200
Lines: 36
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2720.3000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
NNTP-Posting-Host: 80.133.162.225
Message-ID: <3ea1e6ab@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1050797739 80.133.162.225 (19 Apr 2003 17:15:39 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-06!sn-xit-08!supernews.com!216.166.71.118.MISMATCH!small1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail