Thread: How to get User?

  1. #1
    Registered User cfrost's Avatar
    Join Date
    Apr 2004
    Posts
    119

    Post How to get User?

    Hi guys I need some help on getting user logged on a particular machine...
    I have Enumrated all the workstations in my LAN using NetServerEnum(....)

    Now I have name of all the machines , I want to know which user is logged on which machine so that I can display them Side by Side.i.e.

    [Machine Name] user [User Name]

    How can I get the user logged on a particular machine...
    Software is like sex it is good when it is free

  2. #2
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,793

  3. #3
    Registered User
    Join Date
    Sep 2004
    Location
    California
    Posts
    3,268
    That's a strange suggestion Fordy...

    cfrost > I don't think there is a built in way to do what you are attempting. Take a look at this article, and see if it helps you out any:
    http://www.sysinternals.com/ntw2k/fr...loggedon.shtml

  4. #4
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,793
    Hmm...wrong link; I meant this one - http://msdn.microsoft.com/library/en...tauserenum.asp

  5. #5
    Registered User cfrost's Avatar
    Join Date
    Apr 2004
    Posts
    119
    Quote Originally Posted by Fordy
    Hmm...wrong link; I meant this one - http://msdn.microsoft.com/library/en...tauserenum.asp

    Thanx Pal
    Software is like sex it is good when it is free

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Style Points
    By jason_m in forum C Programming
    Replies: 4
    Last Post: 05-28-2008, 06:15 AM
  2. Replies: 4
    Last Post: 04-03-2008, 09:07 PM
  3. Add/Delete Remotely a user
    By Scarvenger in forum Windows Programming
    Replies: 5
    Last Post: 03-24-2008, 08:36 AM
  4. Replies: 4
    Last Post: 04-21-2004, 04:18 PM
  5. ~ User Input script help~
    By indy in forum C Programming
    Replies: 4
    Last Post: 12-02-2003, 06:01 AM