Link to home
Start Free TrialLog in
Avatar of hgil
hgil

asked on

Terminal server - unique client ID

Hi,
how can i get a unique client id ?
is there an api ?

i tried the following :

WTS_INFO_CLASS WTSInfoClass = WTSClientBuildNumber;
int rc = QuerySessionInformation(WTS_CURRENT_SERVER_HANDLE,WTS_CURRENT_SESSION,WTSInfoClass,&pBuffer,&pBytesReturned);

but its not a unique because 2 computers that connected with terminal server had the same number.

ASKER CERTIFIED SOLUTION
Avatar of omk
omk

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ewtaylor
ewtaylor

No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:
[accept omk]
Please leave any comments here within the next seven days.
 
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
 
[ewtaylor]
EE Cleanup Volunteer