Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Retrieve computer names network

Retrieve computer names network

Scheduled Pinned Locked Moved C / C++ / MFC
sysadmindata-structureshelptutorial
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Abebe
    wrote on last edited by
    #1

    Hi, I want to retrieve the CONNECTED computer names of a network. I want to avoid giving users the ability to submit their own 'server string', therefore i want to somehow retrieve the computer names of a network and place them in a tree view. It should look the same as, for example, the Window Explorer, only you won't be able to 'go deeper' into the hierachy (like folders etc.). I hope you understand what i'm trying to say......anyway....all help is appriciated. Many thanks, Abebe Er zit een korstje op mijn aars.

    D 1 Reply Last reply
    0
    • A Abebe

      Hi, I want to retrieve the CONNECTED computer names of a network. I want to avoid giving users the ability to submit their own 'server string', therefore i want to somehow retrieve the computer names of a network and place them in a tree view. It should look the same as, for example, the Window Explorer, only you won't be able to 'go deeper' into the hierachy (like folders etc.). I hope you understand what i'm trying to say......anyway....all help is appriciated. Many thanks, Abebe Er zit een korstje op mijn aars.

      D Offline
      D Offline
      David Crow
      wrote on last edited by
      #2

      I think you are looking for WNetOpenEnum() and WNetEnumResource().


      Five birds are sitting on a fence. Three of them decide to fly off. How many are left?

      A 1 Reply Last reply
      0
      • D David Crow

        I think you are looking for WNetOpenEnum() and WNetEnumResource().


        Five birds are sitting on a fence. Three of them decide to fly off. How many are left?

        A Offline
        A Offline
        Abebe
        wrote on last edited by
        #3

        Thanks! I checked those methods out earlier, but i kept getting mapped network drives and other stuff. I didn't check the 'scope' argument properly. Thanks again. Er zit een korstje op mijn aars.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups