client RDP info

client RDP info

Postby Ugo » Thu Dec 01, 2011 10:44 am

hi all,

I need to know a unique value of the remote client from the server rdp.

is possible?

Thank you for your reponse.
Ciao, best regards,
Ugo
User avatar
Ugo
 
Posts: 283
Joined: Sat Oct 15, 2005 6:40 am
Location: Turin, Italy

Re: client RDP info

Postby pablovidal » Thu Dec 01, 2011 12:06 pm

Hello,
What I do is to take the user name with which the user entered.

Code: Select all  Expand view
Function ListUsersTs()
local oLoc := CreateObject( "wbemScripting.SwbemLocator" )
local oSrv := oLoc:ConnectServer(,"root\cimv2")
local aDat := oSrv:ExecQuery( "SELECT * FROM Win32_UserAccount" )
Local oDat
Local aRet := {""}

 For each oDat in aDat
  AADD(aRet, AllTrim( Upper( oDat:Name ) ) )
 Next

Return( aRet )
Saludos,

Pablo Alberto Vidal
/*
------------------------------------------------------
Harbour 3.2.0, Fivewin 17.02, BCC7
------------------------------------------------------
*/
User avatar
pablovidal
 
Posts: 401
Joined: Thu Oct 06, 2005 10:15 pm
Location: Republica Dominicana


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 100 guests