I.Heath@ecs.soton.ac.uk (Ian Heath) (01/28/91)
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)
johnm@spudge.UUCP (John Munsch) (01/31/91)
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