CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Dec 2004
    Posts
    293

    Question Extract UPN from Citrix\Terminal Server machine using WTSQuerySessionInformation()

    Hi,

    I have multi session on Citrix machine and I need to extract the FQDN\UPN of each of the users.

    I use:

    WTSQuerySessionInformation(..,.., WTSDomainName);

    but it gives me partial\short string of the Domain, for example: DomainName instead of DomainName.com
    - No Suffix!


    How can I retrieve the full representation (active directory) of the domain name??


    Thank you.

  2. #2
    Join Date
    Dec 2004
    Posts
    293

    Re: Extract UPN from Citrix\Terminal Server machine using WTSQuerySessionInformation(

    Any ideas?

  3. #3
    Join Date
    Nov 2000
    Location
    Voronezh, Russia
    Posts
    6,620

    Re: Extract UPN from Citrix\Terminal Server machine using WTSQuerySessionInformation(

    You could try DsGetDomainControllerInfo with the domain name, I believe.
    Best regards,
    Igor

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured