Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!elroy.jpl.nasa.gov!sdd.hp.com!wuarchive!uunet!mcsun!unido!fauern!sun1.ruf.uni-freiburg.de!hartnegg From: hartnegg@sun1.ruf.uni-freiburg.de (Klaus Hartnegg) Newsgroups: comp.os.msdos.misc Subject: Re: Warm or cold boot? Keywords: reboot, boot Message-ID: <1991Feb2.095943.14034@sun1.ruf.uni-freiburg.de> Date: 2 Feb 91 09:59:43 GMT References: <1991Jan30.194640.10997@pa.dec.com> <20816@hydra.gatech.EDU> <2187@njitgw.njit.edu> Reply-To: HAKL@ibm.ruf.uni-freiburg.de Organization: Rechenzentrum der Universitaet Freiburg, Deutschland Lines: 30 cd5340@mars.njit.edu (Charlap) writes: >In article <20816@hydra.gatech.EDU> np4@prism.gatech.EDU (POMPONIO,NICHOLAS A) writes: >>How can a program determine whether the latest boot was warm or cold? > >Well, mine can. When the mouse driver is loaded, my modem dies completely, >requiring a hard-reset to fix it. So, I can just try to communicate with >the modem. If it fails, it wasn't a coldboot. (of course, if I load the >mouse driver after a coldboot, the modem is still dead...) A ram disk driver that I have can determine this too. When it was a cold boot it installs the ram disk. When not I get a message there is not enough memory available. I guess that the driver notices that the extended memory is already in use because it was not cleared by the memory test that runs at cold-boot. Hs perhaps gives us a hint: write something to a memory location where it does not disturb important things and is not overwritten by other programs either. What about installing a TSR that searches for a copy of itself when being installed and returning an error code when it finds one. If someone finds an easier solution please let me know. -- --------------------------------------------------------------- Klaus Hartnegg, Kleist-Str. 7, D-7835 Teningen, Germany Bitnet : HAKL@DFRRUF1, Internet : HAKL@ibm.ruf.uni-freiburg.de X.400 : G=klaus;S=hartnegg;OU=ibm;OU=ruf;P=uni-freiburg;A=dbp;C=de