Article View: comp.os.ms-windows.programmer.win32
Article #2209Re: Win32 Call to Internet Options
From: Phaedrus
Date: Wed, 07 Apr 1999 00:00
Date: Wed, 07 Apr 1999 00:00
31 lines
2061 bytes
2061 bytes
In article <MPG.117575e16c4460ce989689@news.tele.dk>,
Daniel W. Mathiasen <mathiasen.news@nospam.iname.com> wrote:
>Hi all,
>
>Anyone know how I can open the Internet options in the control panel from
>
>my own application ?
Something like this ought to work. (This isn't the simplest way to do
this, but it's probably the most versatile; and since I'm not entirely sure
how you want this to work--whether you want your app to wait until the user
finishes with the control panel, etc.--I'll go with that.)
SHELLEXECUTEINFO shell;
memset(&shell,0,sizeof(shell));
shell.cbSize = sizeof(shell);
shell.fMask = SEE_MASK_DOENVSUBST | SEE_MASK_NOCLOSEPROCESS;
shell.hwnd = myAppHwnd; /* your app's main window, or
AfxGetMainWnd()->GetSafeHwnd() for an
MFC app */
shell.lpVerb = NULL;
shell.lpFile = "%windir%\\system32\\rundll32.exe";
shell.lpParameters = "shell32.dll,Control_RunDLL INETCPL.CPL";
shell.lpDirectory = "%windir%";
shell.nShow = SW_SHOW;
BOOLEAN bSucceeded = ShellExecuteEx(&shell);
--
\o\ If you're interested in books and stories with transformation themes, \o\
/o/ please have a look at <URL:http://www.halcyon.com/phaedrus>. Thanks! /o/
\o\ FC1.21:FC(W/C)p6arw A- C->++ D>++ H+ M>+ P R T++++ W** Z+ Sm RLCT \o\
/o/ a cmn++++$ d e++ f+++ h- i++wf p-- sm# /o/
Technical Details
Message-ID:
<7eg5vk$do1$1@halcyon.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<MPG.117575e16c4460ce989689@news.tele.dk>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 109d22,cb37a8a9aafc33f2 X-Google-Attributes: gid109d22,public X-Google-Thread: fa6f6,cb37a8a9aafc33f2 X-Google-Attributes: gidfa6f6,public X-Google-Thread: 113dfb,cb37a8a9aafc33f2 X-Google-Attributes: gid113dfb,public From: phaedrus@halcyon.com (Phaedrus) Subject: Re: Win32 Call to Internet Options Date: 1999/04/07 Message-ID: <7eg5vk$do1$1@halcyon.com> X-Deja-AN: 463717083 References: <MPG.117575e16c4460ce989689@news.tele.dk> Organization: Lycanthropes Anonymous Newsgroups: comp.os.ms-windows.programmer.win32,dk.edb.programmering,dk.edb.programmering.c