Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Possible to Detect Windows Logoff?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01589576
Message ID:
01589608
Vues:
52
I use the ON SHUTDOWN event to do housekeeping if the application is closed. However, it appears that the event is not triggered if the application is closed due to the user logging off from, or shutting down, Windows. Therefore, I plan to work with BINDEVENT.

---Michael


>I don't understand the difference between shutting down the application normally and shutting down due to Windows logoff.
>
>You can easily detect if the application is shutting down and handle that.
>
>>I have an application that indicates whether a user is logged into it, and if a record is being modified. When the uses closes the application, it updates the online status. I discovered that if the user logs out of Windows, the VFP application is forced to close, and the online status remains unchanged. Is there a way for VFP to detect whether the user is logging out of Windows, or shutting down, so that it can perform its cleanup?
>>
>>---Michael Reynolds
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform