CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Hybrid View

  1. #1
    Join Date
    Dec 2004
    Posts
    293

    Question How to retrieve Remote desktop user domain name on Win2008 server

    Hi,

    How can I do this??

    Suppose I have Win2008server and many users from defferent domains log in, so every user has its own session.

    How can I obtain from the session the domain name of the user who logged in to server??


    Thank you.

  2. #2
    Join Date
    Oct 2002
    Location
    Timisoara, Romania
    Posts
    14,360

    Re: How to retrieve Remote desktop user domain name on Win2008 server

    Did you try LsaEnumerateLogonSessions (http://msdn.microsoft.com/en-us/libr...5(VS.85).aspx) and for each session call LsaGetLogonSessionData(http://msdn.microsoft.com/en-us/libr...v=vs.85).aspx). It populates a SECURITY_LOGON_SESSION_DATA what should contain the domain name too.
    Marius Bancila
    Home Page
    My CodeGuru articles

    I do not offer technical support via PM or e-mail. Please use vbBulletin codes.

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