🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.ms.programmer
Article #1162

How do you know if you're the shell?

#1162
From: Ian Heath
Date: Mon, 28 Jan 1991 13:08
18 lines
1178 bytes
	The subject line speaks for itself. I've been trying to get
backmenu to replace program manager as the startup shell for windows.
The problem is in determining if it is being started up as the shell
or if it is just being run as an application (I need to know this as I
need to know whether to process the run= and load= lines in win.ini or
not).

	My current kludge is to count the number of windows that are
present when the program is run, and if it's less than a certain
number then I must be the shell. I've no idea if the value I'm using
is consistent across machines, and there must be a more elegant
solution?

	Over to you....
-- 
Ian Heath,
email: ih@ecs.soton.ac.uk (BITNET) or ih@uk.ac.soton.ecs (JANET)
Technical Details
Message-ID: <11282.9101281311@hilliard.ecs.soton.ac.uk>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!decwrl!deccrl!bloom-beacon!eru!hagbard!sunic!mcsun!ukc!icdoc!sot-ecs!Ian

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!decwrl!deccrl!bloom-beacon!eru!hagbard!sunic!mcsun!ukc!icdoc!sot-ecs!Ian
From: I.Heath@ecs.soton.ac.uk (Ian Heath)
Newsgroups: comp.windows.ms.programmer
Subject: How do you know if you're the shell?
Message-ID: <11282.9101281311@hilliard.ecs.soton.ac.uk>
Date: 28 Jan 91 13:08:57 GMT
Sender: daemon@ecs.soton.ac.uk
Lines: 18
X-Mailer: ELM [version 2.3 PL11]