Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Unexpected Shutdown
Message
From
31/03/2005 15:14:13
 
 
To
31/03/2005 14:04:44
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Environment versions
Visual FoxPro:
VFP 7 SP1
OS:
Windows 2000 SP4
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01000422
Message ID:
01000446
Views:
23
>If a system is shutdown while running, say restarted,shutdown by the user, or maybe by a power outage tables,etc. aren't properly updated by VFP. In my case, I'm storing user login/logout information (or trying to).My
>question is:
> Does anyone know of an available API that I could use so I could have the
>application do it's thing before shutting down if it had a call from the O/S during an O/S shutdown or restart? I know under current versions of Windows O/Ss that the O/S shuts down any running applications first. Of course this wouldn't work in the case of a power outage but could be very helpful in all other cases where the O/S is telling the application to shutdown.

SYS(2340) may be useful.
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Previous
Reply
Map
View

Click here to load this message in the networking platform