Thread: Determining Logged On Users

  1. #1
    Registered User mikeman118's Avatar
    Join Date
    Aug 2007
    Posts
    183

    Determining Logged On Users

    Hey, a quick question (these things are never quick, are they?). Does anyone know how to determine what users are logged on? For example, say I had User 1 and User 2. User 2 was logged but inactive, and I was on User 1. How would I determine that User 1 was currently being used? I don't know if that's possible, but any help would be appreciated.

  2. #2
    Hurry Slowly vart's Avatar
    Join Date
    Oct 2006
    Location
    Rishon LeZion, Israel
    Posts
    6,788
    All problems in computer science can be solved by another level of indirection,
    except for the problem of too many layers of indirection.
    – David J. Wheeler

  3. #3
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    Posts
    4,981
    Here's more info....
    http://msdn2.microsoft.com/en-us/library/aa378737.aspx

    If you just want to know the user name that associated with your app:
    http://msdn2.microsoft.com/en-us/library/ms724432.aspx

    gg

  4. #4
    Registered User mikeman118's Avatar
    Join Date
    Aug 2007
    Posts
    183
    Thanks vart and CodePlug, that works perfectly!

    BTW, if you guys remember, what exactly did you search for? Maybe I don't know what to search for, but I tried and couldn't find anything.

  5. #5
    Registered User kryptkat's Avatar
    Join Date
    Dec 2002
    Posts
    638
    also ctrl + alt + del and click tab that says "user" as a quickie

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Function validation.
    By Fhl in forum C Programming
    Replies: 10
    Last Post: 02-22-2006, 08:18 AM
  2. Finding users on a network and messaging them.
    By Necrodeemer in forum C++ Programming
    Replies: 3
    Last Post: 05-04-2003, 02:04 PM
  3. Windows ntfs perms
    By wp_x in forum Tech Board
    Replies: 3
    Last Post: 03-04-2003, 06:38 AM
  4. Help to list the logged on users
    By lsme in forum Linux Programming
    Replies: 1
    Last Post: 02-19-2003, 11:50 PM