Solved

Terminal server - unique client ID

Posted on 2002-03-20
3
564 Views
Last Modified: 2012-06-27
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.

0
Comment
Question by:hgil
3 Comments
 
LVL 2

Accepted Solution

by:
omk earned 300 total points
ID: 6884372
And why not to use user specific functions?
it is like 1-2-3
1.The WTSEnumerateSessions function retrieves a list of sessions on a specified terminal server.
WTS_SESSION_INFO structures. Each structure in the array contains information about a session on the specified terminal server
2.The WTSQueryUserToken function obtains the primary access token of the logged-on user specified by the session ID
3.The WTSQueryUserConfig and WTSSetUserConfig functions enable you to set and retrieve configuration information for a specified user account. The WTS_CONFIG_CLASS enumeration type defines the user configuration parameters.
0
 
LVL 11

Expert Comment

by:ewtaylor
ID: 8905177
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
0

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
XP pro; manually run services in registry? 15 27
Loss of RDP via youngzsoft.com/cn 4 230
Data off on old Win 2000 server. 18 588
no logon server available 8 157
NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
Google always has something new and amazing up its sleeve, and the most current thing that they have been working on is another step in the evolution of Google Search, from machine learning to its brilliant successor, deep learning.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

825 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question