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. Sharing rights

Sharing rights

Scheduled Pinned Locked Moved C / C++ / MFC
sysadminhelpquestion
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.
  • U Offline
    U Offline
    User 423850
    wrote on last edited by
    #1

    Hello friends, I have created a folder, which is a shared folder on network. Now as we know that there are sharing rights like Read, read/write,....etc. I want to give Read only access to the folder. i hve tried with the ACCESS_READ Flag with the Netshare function but it Fails i mean the folder is still having Read/Write Access !!!!!!!!!! Can anybody help me out ??????? Thanx TAKE CARE

    D 1 Reply Last reply
    0
    • U User 423850

      Hello friends, I have created a folder, which is a shared folder on network. Now as we know that there are sharing rights like Read, read/write,....etc. I want to give Read only access to the folder. i hve tried with the ACCESS_READ Flag with the Netshare function but it Fails i mean the folder is still having Read/Write Access !!!!!!!!!! Can anybody help me out ??????? Thanx TAKE CARE

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

      siid wrote: i hve tried with the ACCESS_READ Flag with the Netshare function but it Fails Do you mean NetShareSetInfo()? What is its return value?

      U 1 Reply Last reply
      0
      • D David Crow

        siid wrote: i hve tried with the ACCESS_READ Flag with the Netshare function but it Fails Do you mean NetShareSetInfo()? What is its return value?

        U Offline
        U Offline
        User 423850
        wrote on last edited by
        #3

        i have done it with NetShareAdd Thanx TAKE CARE

        D 1 Reply Last reply
        0
        • U User 423850

          i have done it with NetShareAdd Thanx TAKE CARE

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

          Regardless, what is its return value?

          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