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. Setting full access permissions to a directory using CreateDirectory( )

Setting full access permissions to a directory using CreateDirectory( )

Scheduled Pinned Locked Moved C / C++ / MFC
json
7 Posts 4 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.
  • V Offline
    V Offline
    V K 2
    wrote on last edited by
    #1

    Hi, I want to give full permission to a directory (Administrators as well as any of other users) through CreateDirectory( ) api. Can I have any code snippet. Thanks, Venkat

    R S 2 Replies Last reply
    0
    • V V K 2

      Hi, I want to give full permission to a directory (Administrators as well as any of other users) through CreateDirectory( ) api. Can I have any code snippet. Thanks, Venkat

      R Offline
      R Offline
      Rane
      wrote on last edited by
      #2

      See this[^] link. Regards, Rane

      1 Reply Last reply
      0
      • V V K 2

        Hi, I want to give full permission to a directory (Administrators as well as any of other users) through CreateDirectory( ) api. Can I have any code snippet. Thanks, Venkat

        S Offline
        S Offline
        santhoshv84
        wrote on last edited by
        #3

        Hi, If you give NULL in LPSECURITY_ATTRIBUTES. What is the permission there.. Did you tried like that?

        The price of anything is the amount of life you exchange for it. Thanks and Regards. SANTHOSH V

        R V 3 Replies Last reply
        0
        • S santhoshv84

          Hi, If you give NULL in LPSECURITY_ATTRIBUTES. What is the permission there.. Did you tried like that?

          The price of anything is the amount of life you exchange for it. Thanks and Regards. SANTHOSH V

          R Offline
          R Offline
          Rane
          wrote on last edited by
          #4

          If LPSECURITY_ATTRIBUTES is NULL, the directory will be created successfully but will have the access permission of the current process. Regards, Rane

          1 Reply Last reply
          0
          • S santhoshv84

            Hi, If you give NULL in LPSECURITY_ATTRIBUTES. What is the permission there.. Did you tried like that?

            The price of anything is the amount of life you exchange for it. Thanks and Regards. SANTHOSH V

            V Offline
            V Offline
            V K 2
            wrote on last edited by
            #5

            The code has NULL in LPSECURITY_ATTRIBUTES and still its not working

            M 1 Reply Last reply
            0
            • S santhoshv84

              Hi, If you give NULL in LPSECURITY_ATTRIBUTES. What is the permission there.. Did you tried like that?

              The price of anything is the amount of life you exchange for it. Thanks and Regards. SANTHOSH V

              V Offline
              V Offline
              V K 2
              wrote on last edited by
              #6

              The code has NULL in LPSECURITY_ATTRIBUTES and still its not working Reply·Email·View Thread·PermaLink·Bookmark

              1 Reply Last reply
              0
              • V V K 2

                The code has NULL in LPSECURITY_ATTRIBUTES and still its not working

                M Offline
                M Offline
                Mark Salsbery
                wrote on last edited by
                #7

                Did you look at the link Rane provided?

                Mark Salsbery Microsoft MVP - Visual C++ :java:

                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