Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Getting the client name
Message
From
16/04/2015 12:08:19
 
 
To
16/04/2015 12:02:23
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01618480
Message ID:
01618544
Views:
50
>>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform