CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    May 2006
    Posts
    5

    Capturing User Information

    When a user connects to a windows box using remote desktop or through any other terminal services, I would like to capture following,

    a. login time of the user
    b. logoff time of the user
    c. hostname from where user logged in
    d. Whether the user tried to install or deinstall software
    e. What were the programs user tried to invoke?

    Is this can be achieved programmatically in C++ with Win32?

    If yes, please let me know the way.

    Or if this can be achieved through any other programming language,
    please let me know.

  2. #2

    Re: Capturing User Information

    Quote Originally Posted by jenovaramesh
    Or if this can be achieved through any other programming language,
    please let me know.
    If it can be done through another one, it can surely be done in C++, C++ is more than likely responsible for the creation of any of the others.

  3. #3
    Join Date
    Aug 2003
    Posts
    938

    Re: Capturing User Information

    Check out NetUserEnum.

  4. #4
    Join Date
    Feb 2000
    Location
    San Diego, CA
    Posts
    10,354

    Re: Capturing User Information

    There are Windows terminal Services APIs and notifications that you could use to get some of the information.

    Check out WTSEnumerateSessions, WTSRegisterSessionNotification APIs and such.

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