Solved

Terminal server - unique client ID

Posted on 2002-03-20
3
562 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

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

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

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…
Some code to ensure data integrity when using macros within Excel. Also included code that helps secure your data within an Excel workbook.
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.
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 …

932 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now