Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can unlock PC from VFP app?
Message
From
01/08/2019 01:23:15
 
 
To
31/07/2019 20:31:33
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01669837
Message ID:
01669852
Views:
48
I'd be afraid of racing powerdown...

>Come to think of it, maybe you could BINDEVENT() to the sleep and/or hibernate event, and close your app.
>
>>My app does not have the inactivity timeout. So, I will have to live with this limitation of the PC sleep or hibernation.
>>Thank you for your message.
>>
>>>I think Thomas is right, what you're seeing is probably being caused by sleep or hibernation rather than lock (i.e. WindowsLogoKey-L).
>>>
>>>If a workstation is locked for an extended period then it may sleep or hibernate if so configured. Until those thresholds are reached, running programs behave normally except they receive no keyboard or mouse inputs.
>>>
>>>As a workaround you could specify your app's inactivity timeout to be shorter than the workstation's sleep/hibernate timeout.
>>>
>>>>Thank you for your message.
>>>>
>>>>>Only dim memory on research a coworker did and I was asked to sit in on his presentation:
>>>>>first problem was no reliable real event for all the win versions supported back then
>>>>>possible workaround identified was query event log
>>>>>
>>>>>problem not all pc enter the same state/miss some state:
>>>>>some went directly into hibernate depending on user sessions
>>>>>no real solution, except creating service messaging the app
>>>>>
>>>>>back then considered to rube-goldbergish, went with saving un-persisted data to a local table cache in case of app being removed
>>>>>Allready in place was solution to close down all WS across network for (data) maintainance
>>>>>perhaps now better hooks, back then considered not worth the programmers time
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>>Hi,
>>>>>>
>>>>>>I have a routine that allows closing a VFP 9 application remotely. Basically, when a flag file is present on the server, the timer code (in the VFP 9 application) closes all forms and then closes the application. It works except when a user's PC is locked. At least this is what I found out yesterday with one user.
>>>>>>
>>>>>>So, my questions, is it possible to have a code in the VFP 9 application that will close the forms and the app even when the PC is locked?
>>>>>>
>>>>>>TIA
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform