Problem with Windows-Shutdown generated by a UPS

  • Thread starter Thread starter Peter Stojkovic
  • Start date Start date
P

Peter Stojkovic

I have the following configuration

VS-Studio 2003 Application
Local SQL-Database

When the UPS starts a shutdown of the unattended PC the following happens.

The local database SQL-Database stops very quickly.
When the application is closing ,
I have programmed to store the latest used values in database.

But now I would like to skip storing , because the database has already
shutdowned, and I have programmed to visualize
the datbase-Error on screen, that normally is correct, except this situation
!!

How can I recognize, that the Application is not stopped by user click, but
by Windows-Shutdown ( generated by a UPS )


THX for any help
Peter Stojkovic
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top