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. The Lounge
  3. Get directory read/write status??

Get directory read/write status??

Scheduled Pinned Locked Moved The Lounge
questionc++securityjson
3 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.
  • P Offline
    P Offline
    philip andrew
    wrote on last edited by
    #1

    Hi All, I'm on Windows 2000 and am trying to get the status of a directory which has the permission to write files turned off. When you click on the properties of a directory and click on the "security" tab you can set certain permissions of that directory, such as ability to write files turned off. My question is how can I get these permissions in Visual C++? What API call do I have to do? Thanks, Philip

    C M 2 Replies Last reply
    0
    • P philip andrew

      Hi All, I'm on Windows 2000 and am trying to get the status of a directory which has the permission to write files turned off. When you click on the properties of a directory and click on the "security" tab you can set certain permissions of that directory, such as ability to write files turned off. My question is how can I get these permissions in Visual C++? What API call do I have to do? Thanks, Philip

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      ::SHAskInTheRightForum("there's a link at the top of the lounge, just next to the note begging people to stop asking programming questions here instead");
      // I don't know the answer myself, but someone else will in the forum, I am sure.

      Christian I am completely intolerant of stupidity. Stupidity is, of course, anything that doesn't conform to my way of thinking. - Jamie Hale - 29/05/2002 Half the reason people switch away from VB is to find out what actually goes on.. and then like me they find out that they weren't quite as good as they thought - they've been nannied. - Alex, 13 June 2002

      1 Reply Last reply
      0
      • P philip andrew

        Hi All, I'm on Windows 2000 and am trying to get the status of a directory which has the permission to write files turned off. When you click on the properties of a directory and click on the "security" tab you can set certain permissions of that directory, such as ability to write files turned off. My question is how can I get these permissions in Visual C++? What API call do I have to do? Thanks, Philip

        M Offline
        M Offline
        Martin Marvinski
        wrote on last edited by
        #3

        Look up tokens. You have to get a security token to do things like shutdown, reboot, and other things in NT and Win2K.

        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