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. Lock a folder/Directory

Lock a folder/Directory

Scheduled Pinned Locked Moved C / C++ / MFC
questiontutorial
5 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.
  • A Offline
    A Offline
    Ankush Mehta
    wrote on last edited by
    #1

    Hi all, How can i make a folder or directory inaccessible to be edited or viewed of its internal structure? Kindly Guide. Regards, Ankush Mehta

    N D 2 Replies Last reply
    0
    • A Ankush Mehta

      Hi all, How can i make a folder or directory inaccessible to be edited or viewed of its internal structure? Kindly Guide. Regards, Ankush Mehta

      N Offline
      N Offline
      Nibu babu thomas
      wrote on last edited by
      #2

      I don't think you can do it. Of course you can hide the folder but for making it inaccessible to be edited or viewed I don't think there is an API for that.


      Nibu thomas Software Developer

      1 Reply Last reply
      0
      • A Ankush Mehta

        Hi all, How can i make a folder or directory inaccessible to be edited or viewed of its internal structure? Kindly Guide. Regards, Ankush Mehta

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

        Are you wanting to do this programmatically, or use the OS to do it for you?


        "Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain

        "There is no death, only a change of worlds." - Native American Proverb

        A 1 Reply Last reply
        0
        • D David Crow

          Are you wanting to do this programmatically, or use the OS to do it for you?


          "Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain

          "There is no death, only a change of worlds." - Native American Proverb

          A Offline
          A Offline
          Ankush Mehta
          wrote on last edited by
          #4

          Programmatically.. Ankush Mehta

          D 1 Reply Last reply
          0
          • A Ankush Mehta

            Programmatically.. Ankush Mehta

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

            Here are some links about ACLs: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wmisdk/wmi/setsecuritydescriptor_method_in_class_win32_logicalfilesecuritysetting.asp[^] http://support.microsoft.com/default.aspx?scid=kb;en-us;266461[^] http://msdn.microsoft.com/library/default.asp?url=/library/en-us/secauthz/security/access_control.asp[^]


            "Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain

            "There is no death, only a change of worlds." - Native American Proverb

            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