Mensaje
General information
Foro:
Visual FoxPro
Category:
Funciones del API WIN32
Miscellaneous
ID de la conversación:
01646034
ID del mensaje:
01646036
Views:
71
>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
Responder
Mapa
Ver