How to get User?

This is a discussion on How to get User? within the Windows Programming forums, part of the Platform Specific Boards category; Hi guys I need some help on getting user logged on a particular machine... I have Enumrated all the workstations ...

  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,789

  3. #3
    Registered User
    Join Date
    Sep 2004
    Location
    California
    Posts
    3,264
    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,789
    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, 07:15 AM
  2. Replies: 4
    Last Post: 04-03-2008, 10:07 PM
  3. Add/Delete Remotely a user
    By Scarvenger in forum Windows Programming
    Replies: 5
    Last Post: 03-24-2008, 09:36 AM
  4. Replies: 4
    Last Post: 04-21-2004, 05:18 PM
  5. ~ User Input script help~
    By indy in forum C Programming
    Replies: 4
    Last Post: 12-02-2003, 06:01 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21