Solved

Ungraceful Shutdown

Posted on 1998-09-30
2
253 Views
Last Modified: 2010-04-01
if the computer is not shutdown properly. e.x user accidentally pulled the plug. Is there a message that my application can intercept. Working on Windows NT platform.
0
Comment
Question by:ibs22
  • 2
2 Comments
 
LVL 22

Accepted Solution

by:
nietod earned 50 total points
ID: 1174051
Not a chance!
The computer doesn't even "know" about this.  It can't detect it and if it did there would be no time to do anything about it.
0
 
LVL 22

Expert Comment

by:nietod
ID: 1174052
Now some UPSs (universal power supplies) have a feature where they will send information in on a com port when they are about to run out of back up power.  Most of these UPSs will have a program that you run that looks for this and that will shut down windows in the last minute or two before the UPS runs out of power.  I use such a feature like that for my novell server and it seems to work well.
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

When writing generic code, using template meta-programming techniques, it is sometimes useful to know if a type is convertible to another type. A good example of when this might be is if you are writing diagnostic instrumentation for code to generat…
Article by: SunnyDark
This article's goal is to present you with an easy to use XML wrapper for C++ and also present some interesting techniques that you might use with MS C++. The reason I built this class is to ease the pain of using XML files with C++, since there is…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now