Thread: Machine Names

  1. #1

    Machine Names

    How can I enumerate logged in machine names ?

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

    Re: Machine Names

    Originally posted by wxccccc
    How can I enumerate logged in machine names ?
    Looking for machines on a network??

    Go to MSDN and lookup WNetOpenEnum & WNetEnumResource

  3. #3
    Registered User
    Join Date
    Nov 2001

    Like this

    I asked the same question quite a while ago.

    heres the thread.

  4. #4
    What I'm trying to do is run this off a server so that I can get:

    IP Machine Name
    ---- --------------------- Boss_Laptop Manager_HP

  5. #5
    I found this example, but I have no idea how to use it !

    All i'd like is the machine names (maybe the usernames and ip addresses) in a simple 1D array of strings (or more depending the amount of info retrieved) .. so I can use it in a C# program...

    Enumerating Users
        dwPreferredSize = (sizeof(NET_DISPLAY_USER) + (3 * UNLEN) * s_iMaximumUserCount);
        pNDU = NULL;
        lError = NetQueryDisplayInformation(NULL,                  // NULL means LocalMachine
                                            1,                     // query User information
                                            0,                     // starting with the first user
                                            s_iMaximumUserCount,   // return a max of 100 users
                                            dwPreferredSize,       // preferred buffer size

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Machine Learning with Lego Mindstorms
    By DavidP in forum A Brief History of
    Replies: 14
    Last Post: 01-30-2009, 02:34 PM
  2. Replies: 4
    Last Post: 01-18-2008, 07:05 PM
  3. reading folder is it done ?
    By roalme00 in forum C++ Programming
    Replies: 8
    Last Post: 01-11-2008, 10:34 AM
  4. Porting from 32 bit machine to 64 bit machine!
    By anoopks in forum C Programming
    Replies: 10
    Last Post: 02-25-2005, 08:02 PM
  5. Designing State Machine
    By axon in forum Tech Board
    Replies: 3
    Last Post: 11-06-2003, 12:13 PM