🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #5583

Re: Detect PC reset button

#5583
From: Andrue Cope [TeamB]
Date: Wed, 03 Aug 2005 08:11
16 lines
1524 bytes
Randy wrote:

> Is there any way to detect that a PC has been reset manually (e.g.
> reset button) as opposed to a power failure?

There is a Power Failure interrupt that gets sent to the CPU (it's
actually the second highest priority) but I don't know if the Kernel
bothers to react to it. Even if the Kernel does react I doubt it has
the time or inclination to propogate the interrupt around the system to
user mode code. Probably it will try and notify device drivers if they
have asked to be notified about such things.

-- 
Andrue Cope [TeamB]
[Bicester, Uk]
http://info.borland.com/newsgroups/guide.html
Technical Details
Message-ID: <42f07c1c@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!hwmnpeer01.lga!hwmedia!feed5.newsreader.com!newsreader.com!news-out.nntp.be!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <42efdf9b$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,d475b161ada9fa99
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Andrue Cope [TeamB]" <no.spam@not.a.valid.address>
Subject: Re: Detect PC reset button
Newsgroups: borland.public.cppbuilder.nativeapi
References: <42efdf9b$1@newsgroups.borland.com>
Date: Wed, 3 Aug 2005 09:11:07 +0100
User-Agent: XanaNews/1.17.5.7
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
NNTP-Posting-Host: 217.207.223.34
Message-ID: <42f07c1c@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1123056668 217.207.223.34 (3 Aug 2005 01:11:08 -0700)
Lines: 16
X-Authenticated-User: acope
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!hwmnpeer01.lga!hwmedia!feed5.newsreader.com!newsreader.com!news-out.nntp.be!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail