Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can unlock PC from VFP app?
Message
 
 
To
31/07/2019 20:31:33
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01669837
Message ID:
01669857
Views:
48
Even if it is possible, first, this is above my skills. Secondly, I would be very concerned breaking something.
I prefer to go the safe route: tell the customer that it cannot be done.
Thank you for your suggestion.
>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
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Previous
Reply
Map
View

Click here to load this message in the networking platform