Get Domain Name of Terminal Services Client Programmatically

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Hi,
I am researching on getting the domain name of terminal services client
programmatically. I haven't seen anything in WTSQuerySessionInformation
to get the Domain name of the Terminal Services Client, it does have
for Terminal Services Server.

If any one knows how to get the domain name of terminal services client
programmatically then please let me know.

Thanks,
Amjad

.