🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Custom Shell on Win98

#9059
From: nicolasr
Date: Tue, 10 Aug 2004 00:00
28 lines
2130 bytes
Hi and thanks to both for your ideas!

Bob's second thought seems to solve the problem. When Explorer
is started it checks the current "Shell" value in system.ini. If it is
registered
as the default Shell it will start in "Shell-mode" otherwise as a usual
Explorer window.

I also googled for Explorer command line parameters but there seems
to be none that decides about whether Explorer should start in shell-mode.

So my current approach is to register my "ShellStarter.exe" in system.ini.
When the system boots it starts ShellStarter.exe. ShellStarter provides
two buttons "Start Windows Shell", "Start MyShell". When the user
presses "Start Windows Shell" I reset the "Shell=" entry to Explorer.exe
and then call CreateProcess on it.
That works well! The problem is that in any case this value must be reset
to "ShellStarter.exe" so that it is started the next time the system boots.

I used WaitForInputIdle() to wait until Explorer.exe has started up and then
reset the Shell value. This seems to work.

All this is probably totally different and easier under Win2K/XP. At least
I did some tests with CreateDesktop etc. which did make more sense to
me. Unfortunately I really need to get this working under Win98.

thanks again,
Nick
Technical Details
Message-ID: <411810a9@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!fr.ip.ndsoftware.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <4116c36f$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,ac8db2db75265d1b
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "nicolasr" <nicolasrNOSPAMATSIGNgmx.net>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <4116c36f$1@newsgroups.borland.com>
Subject: Re: Custom Shell on Win98
Date: Tue, 10 Aug 2004 02:00:54 +0200
Lines: 30
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: 80.133.175.107
Message-ID: <411810a9@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1092096169 80.133.175.107 (9 Aug 2004 17:02:49 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!fr.ip.ndsoftware.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail