Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to check if windows was not shutdown properly?
Message
From
07/11/2007 07:59:21
 
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01266043
Message ID:
01267230
Views:
22
This message has been marked as the solution to the initial question of the thread.
>>The application is running on about 60 machines at same time so how I do it?
>

If you don't have to support Windows 95/98/ME, you can look for any 6008 events in the event log when the system last booted, which is itself marked with a 6005 event - 6008 indicates a unexpected shutdown, as opposed to 6006 which is logged for a clean shutdown - there's a KB article about these events. It would be quite easy to use WMI from VFP to determine this by comparing the times of the latest 6005/6009, 6006, and 6008, entries, if you want I could help with that..
Previous
Reply
Map
View

Click here to load this message in the networking platform