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. Shares

Shares

Scheduled Pinned Locked Moved C / C++ / MFC
c++designhelp
6 Posts 3 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.
  • K Offline
    K Offline
    kelprinc
    wrote on last edited by
    #1

    Can somebody help me design a small program in c++ to check both ntfs shares and file shares for 1 machine. I have tried using ADSI but i just dont get the attributes. Any links would be useful Kelvin Chikomo -- modified at 8:49 Monday 16th January, 2006

    D 1 Reply Last reply
    0
    • K kelprinc

      Can somebody help me design a small program in c++ to check both ntfs shares and file shares for 1 machine. I have tried using ADSI but i just dont get the attributes. Any links would be useful Kelvin Chikomo -- modified at 8:49 Monday 16th January, 2006

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

      Have you tried NetShareEnum() or NetShareGetInfo()?


      "The words of God are not like the oak leaf which dies and falls to the earth, but like the pine tree which stays green forever." - Native American Proverb

      K 1 Reply Last reply
      0
      • D David Crow

        Have you tried NetShareEnum() or NetShareGetInfo()?


        "The words of God are not like the oak leaf which dies and falls to the earth, but like the pine tree which stays green forever." - Native American Proverb

        K Offline
        K Offline
        kelprinc
        wrote on last edited by
        #3

        Do you have any sample code for these methods: NetShareEnum() or NetShareGetInfo() ? Kelvin Chikomo -- modified at 9:26 Monday 16th January, 2006

        D 1 Reply Last reply
        0
        • K kelprinc

          Do you have any sample code for these methods: NetShareEnum() or NetShareGetInfo() ? Kelvin Chikomo -- modified at 9:26 Monday 16th January, 2006

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

          NetShareEnum NetShareGetInfo Google


          "The words of God are not like the oak leaf which dies and falls to the earth, but like the pine tree which stays green forever." - Native American Proverb

          K 1 Reply Last reply
          0
          • D David Crow

            NetShareEnum NetShareGetInfo Google


            "The words of God are not like the oak leaf which dies and falls to the earth, but like the pine tree which stays green forever." - Native American Proverb

            K Offline
            K Offline
            kelprinc
            wrote on last edited by
            #5

            Thanks alot for the links, they are very helpfull. I am now getting these 2 errors : error LNK2001: unresolved external symbol _NetApiBufferFree@4 and error LNK2001: unresolved external symbol _NetShareGetInfo@16 I think i am missing some libraries what could i include? I tried including activeds.lib and adsiid.lib but i still get the same errors Kelvin Chikomo

            J 1 Reply Last reply
            0
            • K kelprinc

              Thanks alot for the links, they are very helpfull. I am now getting these 2 errors : error LNK2001: unresolved external symbol _NetApiBufferFree@4 and error LNK2001: unresolved external symbol _NetShareGetInfo@16 I think i am missing some libraries what could i include? I tried including activeds.lib and adsiid.lib but i still get the same errors Kelvin Chikomo

              J Offline
              J Offline
              Jon Hulatt
              wrote on last edited by
              #6

              Look up the NetShareGetInfo function in MSDN. Scroll down. See the table at the bottom where it tells you what library the function is implemented in? "Link to Netapi32.lib. Link to Svrapi.lib in Windows Me/98/95."

              using System.Beer;

              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