Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Getting the client name
Message
 
To
15/04/2015 14:44:48
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:
01618482
Views:
67
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform