🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.acorn.tech
Article #564

Re: Noticing when Shutdown is activated

#564
From: Clive Jones
Date: Fri, 20 Nov 1992 02:06
21 lines
1945 bytes
In article <BxytAB.8KB@newcastle.ac.uk>, unregistered@newcastle.ac.uk (Jason O'Broin) writes:
>
> In addition to this, I need to be able to distinguish between this and Exiting
> the desktop (ie. closing down the desktop is not the same as starting the
> shutdown procedure). Does anyone know the actual operations performed by
> shutdown. Ideally, I'd like to replace it completely.

I believe the mechanism is almost identical between RiscOS3.1 and previous
versions, in terms of its external interface. The difference between the
shutdown dbox and merely leaving the desktop is slight.

Basically, all tasks are first sent a PreQuit message (number 8). If none of
them respond, they're all sent Quit (0) messages. So - the former should be
handled if you want the opportunity to object to the shutdown, or the latter
can be handled if you just want to do something.

Under RiscOS3, the PreQuit message *may* have a flag word at address 20 in
the message block (if the block is large enough). The bottom bit of this is set
if it's your application being quit, or clear if a shutdown is happening.

--Clive.
Technical Details
Message-ID: <1992Nov20.020639.10146@infodev.cam.ac.uk>
Path: arc1-ca.pugleaf.net!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
References: <BxytAB.8KB@newcastle.ac.uk>

Show Full Headers
Complete Article Headers
Newsgroups: comp.sys.acorn.tech
Path: arc1-ca.pugleaf.net!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
From: crj10@phx.cam.ac.uk (Clive Jones)
Subject: Re: Noticing when Shutdown is activated
In-Reply-To: unregistered@newcastle.ac.uk (Jason O'Broin)'s message of 19 Nov 92 13:25:23 GMT
Message-ID: <1992Nov20.020639.10146@infodev.cam.ac.uk>
Telephone-Messages: +44 223 33 4900
Sender: news@infodev.cam.ac.uk (USENET news)
Address: Christ's College, Cambridge CB2 3BU, ENGLAND.
Nntp-Posting-Host: ashley.cl.cam.ac.uk
Organization: 6am Digital Playground
X-Furry-Character: Gerald_Duck
References: <BxytAB.8KB@newcastle.ac.uk>
Date: Fri, 20 Nov 1992 02:06:39 GMT
Lines: 21