Jump to content

[C++] Granting file permissions


Recommended Posts

I am writing a C++ application in which I need to add file permissions for a user. I am using an explicit access structure to add to the DACL. The problem I have is that I want to inherit the permissions for all files created within a folder after I assign the new permissions.

I can do this in XP by setting:

eb.grfInheritance = SUB_CONTAINERS_AND_OBJECTS_INHERIT;

When I run my application in NT however, it doesn't seem to accept this value; in fact it doesn't seem to accept anything other than:

eb.grfInheritance = 0;

Are there any suggestions on how to get this to work in NT or is it just plain impossible? :}

Link to comment
Share on other sites


Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...