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. How can find out values return by NetServerEnum is machine or any other hardware device?

How can find out values return by NetServerEnum is machine or any other hardware device?

Scheduled Pinned Locked Moved C / C++ / MFC
sysadminhardwarequestion
4 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.
  • L Offline
    L Offline
    Le rner
    wrote on last edited by
    #1

    Hi all, i m using NetServerEnum function to find out all machines of network. but some time my network printer and fax machine also display in result of NetServerEnum. so please tell me how can find out values return by NetServerEnum is machine or any other hardware device. so i can leave these hardware devices. i want to conside only client os machines. thanks in advance.

    To accomplish great things, we must not only act, but also dream; not only plan, but also believe.

    Mircea PuiuM 1 Reply Last reply
    0
    • L Le rner

      Hi all, i m using NetServerEnum function to find out all machines of network. but some time my network printer and fax machine also display in result of NetServerEnum. so please tell me how can find out values return by NetServerEnum is machine or any other hardware device. so i can leave these hardware devices. i want to conside only client os machines. thanks in advance.

      To accomplish great things, we must not only act, but also dream; not only plan, but also believe.

      Mircea PuiuM Offline
      Mircea PuiuM Offline
      Mircea Puiu
      wrote on last edited by
      #2

      Use the servertype input parameter to filter what you get. See here: http://msdn.microsoft.com/en-us/library/aa370623(VS.85).aspx[^]

      SkyWalker

      L 1 Reply Last reply
      0
      • Mircea PuiuM Mircea Puiu

        Use the servertype input parameter to filter what you get. See here: http://msdn.microsoft.com/en-us/library/aa370623(VS.85).aspx[^]

        SkyWalker

        L Offline
        L Offline
        Le rner
        wrote on last edited by
        #3

        i find out the value of servertype.

        CString tenp;
        temp.Format(_T("Type: %d"), pTmpBuf->sv101_type);
        AfxMessageBox(temp);

        it returns value in some number ,how can identified its vallid os machine or any other hardware device. thanks in advance.

        To accomplish great things, we must not only act, but also dream; not only plan, but also believe.

        Mircea PuiuM 1 Reply Last reply
        0
        • L Le rner

          i find out the value of servertype.

          CString tenp;
          temp.Format(_T("Type: %d"), pTmpBuf->sv101_type);
          AfxMessageBox(temp);

          it returns value in some number ,how can identified its vallid os machine or any other hardware device. thanks in advance.

          To accomplish great things, we must not only act, but also dream; not only plan, but also believe.

          Mircea PuiuM Offline
          Mircea PuiuM Offline
          Mircea Puiu
          wrote on last edited by
          #4

          I think you have already a list of values and their meanings for servertype in the link I provided. Is this not enough?

          SkyWalker

          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