home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / sys / acorn / tech / 696 < prev    next >
Encoding:
Text File  |  1992-11-19  |  1.9 KB  |  38 lines

  1. Newsgroups: comp.sys.acorn.tech
  2. Path: sparky!uunet!haven.umd.edu!darwin.sura.net!zaphod.mps.ohio-state.edu!magnus.acs.ohio-state.edu!usenet.ins.cwru.edu!agate!doc.ic.ac.uk!daresbury!mrccrc!warwick!pavo.csi.cam.ac.uk!jubilex!crj10
  3. From: crj10@phx.cam.ac.uk (Clive Jones)
  4. Subject: Re: Noticing when Shutdown is activated
  5. In-Reply-To: unregistered@newcastle.ac.uk (Jason O'Broin)'s message of 19 Nov 92 13:25:23 GMT
  6. Message-ID: <1992Nov20.020639.10146@infodev.cam.ac.uk>
  7. Telephone-Messages: +44 223 33 4900
  8. Sender: news@infodev.cam.ac.uk (USENET news)
  9. Address: Christ's College, Cambridge CB2 3BU, ENGLAND.
  10. Nntp-Posting-Host: ashley.cl.cam.ac.uk
  11. Organization: 6am Digital Playground
  12. X-Furry-Character: Gerald_Duck
  13. References: <BxytAB.8KB@newcastle.ac.uk>
  14. Date: Fri, 20 Nov 1992 02:06:39 GMT
  15. Lines: 21
  16.  
  17. In article <BxytAB.8KB@newcastle.ac.uk>, unregistered@newcastle.ac.uk (Jason O'Broin) writes:
  18. >
  19. > In addition to this, I need to be able to distinguish between this and Exiting
  20. > the desktop (ie. closing down the desktop is not the same as starting the
  21. > shutdown procedure). Does anyone know the actual operations performed by
  22. > shutdown. Ideally, I'd like to replace it completely.
  23.  
  24. I believe the mechanism is almost identical between RiscOS3.1 and previous
  25. versions, in terms of its external interface. The difference between the
  26. shutdown dbox and merely leaving the desktop is slight.
  27.  
  28. Basically, all tasks are first sent a PreQuit message (number 8). If none of
  29. them respond, they're all sent Quit (0) messages. So - the former should be
  30. handled if you want the opportunity to object to the shutdown, or the latter
  31. can be handled if you just want to do something.
  32.  
  33. Under RiscOS3, the PreQuit message *may* have a flag word at address 20 in
  34. the message block (if the block is large enough). The bottom bit of this is set
  35. if it's your application being quit, or clear if a shutdown is happening.
  36.  
  37. --Clive.
  38.