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:
01589626
Vues:
50
It will fire in most cases, but might override attempts of user interaction like asking if data should be saved. But there is also is a parameter setting for express shutdown in WINAPI - dunno if that will fire on shut

>Thank you. I didn't realize it should fire. I have more testing to do.
>
>
>>Strange, because it ON SHUTDOWN should fire.
>>
>>What you can't stop is someone terminating the application through task manager.
>>
>>I wonder if people are getting the message "an application is stopping Windows from shutting down, shutdown anyway" (this isn't the actual message, but it's similar). In this case, Windows terminates the application and anything you do with ON SHUTDOWN or BINDEVENT won't work.
>>
>>
>>>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform