Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Possible to Detect Windows Logoff?
Message
From
09/12/2013 16:35:53
Thomas Ganss (Online)
Main Trend
Frankfurt, Germany
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01589576
Message ID:
01589626
Views:
51
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
Previous
Reply
Map
View

Click here to load this message in the networking platform