>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).aspxBut I don't test it.
MartinaJ