Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 248
  • Last Modified:

How to programmatically toggle permissions inheritance for a file in VB

Hello. I am having trouble understanding the SetFileSecurity API.
Every example I can locate is pages of unrelated items, and no documentation on the one setting I would like to enable.

I'm looking for an example that has the same effect as turning on the advanced security option "Inherit from parent the permission entries that apply to child objects. Include these with entries explicitly defined here" for a file without throwing sendkeys at the dialog, or anything like that.
1 Solution
Can someone please submit some sample code to enable/disable this flag?

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now