Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Getting the client name
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01618480
Message ID:
01618482
Vues:
66
This message has been marked as a message which has helped to the initial question of the thread.
>Hi All
>
>Running an app under terminal services / remote desktop and if I use the Windows Remote desktop Services Manager and look at a logged in user I can see various info about the user such as their log in name but also the "client name" which appears to be the name of the computer that the user is using. For an example see the screenshot attached. Does anyone know an API routine to get that info from within a VFP program?

DECLARE INTEGER WTSOpenServer IN Wtsapi32.dll STRING @
DECLARE INTEGER WTSCloseServer IN Wtsapi32.dll INTEGER
+ WTSEnumerateSessions() https://msdn.microsoft.com/en-us/library/aa383833(v=vs.85).aspx
+ WTSQuerySessionInformation() https://msdn.microsoft.com/en-us/library/aa383838(v=vs.85).aspx

But I don't test it.


MartinaJ
"Navision is evil that needs to be erazed... to the ground"

Jabber: gorila@dione.zcu.cz
Jabber? Jabbim
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform