MSFN Forum: [C++] Granting file permissions - MSFN Forum

Jump to content



Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

[C++] Granting file permissions How to inherit file permissions on NT Rate Topic: -----

#1 User is offline   craziscoth 

  • Newbie
  • Group: Members
  • Posts: 27
  • Joined: 17-June 05

Posted 30 August 2005 - 02:51 PM

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? :}


Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy