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:
01618541
Vues:
47
>>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

Thank Martina, I am investigating it. I have found some sample code in VB and C# on the internet.
In the End, we will remember not the words of our enemies, but the silence of our friends - Martin Luther King, Jr.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform