Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to check if windows was not shutdown properly?
Message
De
07/11/2007 07:59:21
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01266043
Message ID:
01267230
Vues:
23
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..
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform