Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Getting the client name
Message
De
16/04/2015 12:08:19
 
 
À
16/04/2015 12:02:23
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:
01618544
Vues:
49
>>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?
>
>sys(0) will give you information like this from an rdp or ica client:
>
>
>     ? sys(0)
>     MDWRND # hfay
>
>
>hth,
>
>Hank

Hi Hank,

No that doesn't quite work. It returns the servers name and then the hash and the users login name. Because the program is running on the server so you get the server machine name. I need the clients machine name. His login name I have.
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform