Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to log off from RDP if application terminates
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
01646034
Message ID:
01646036
Vues:
69
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform