Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!evax!utacfd!merch!spudge!johnm From: johnm@spudge.UUCP (John Munsch) Newsgroups: comp.windows.ms.programmer Subject: Re: How do you know if you're the shell? Message-ID: <27130@spudge.UUCP> Date: 30 Jan 91 16:56:01 GMT References: <11282.9101281311@hilliard.ecs.soton.ac.uk> Reply-To: johnm@spudge.UUCP (John Munsch) Organization: Friends of Guru Bob Lines: 13 In article <11282.9101281311@hilliard.ecs.soton.ac.uk> I.Heath@ecs.soton.ac.uk (Ian Heath) writes: > 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). The info you want is in the TIPS.TXT file that the SDK install dumped in your SDK directory. Basically all you do is call GetNumTasks() in order to find out if anybody else is running. John Munsch