Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to log off from RDP if application terminates
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
01646034
Message ID:
01646036
Views:
68
>VFP 9 application is running under RDP.
>
>How to log-off user if application terminates ?
>Is there some API function which can called from VFP before application exits ?
>I read Doug Windows API functions white paper but havent found this.
>
>http://www.news2news.com/vfp/index.php?example=36
>
>contains code to turn windows off. MAybe this can used to exit RDP session ?


I wouldn't do that - it looks to me like it would actually shut down the server.

Maybe this ???
https://msdn.microsoft.com/en-us/library/aa383836(v=vs.85).aspx - but I think they have to be part of the administrator group for it to work...

....you might be able to combine that with detecting how long the user has been idle if you want to get fancy about it....
https://stackoverflow.com/questions/2212823/how-to-detect-inactive-user
ICQ 10556 (ya), 254117
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform