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

Using SetSecurityDescriptorControl

Hi Experts,

I need a little sample about using SetSecurityDescriptorControl in VB6, I need to automate File/Directory security settings for w2k, I think I can use this function to uncheck the flag "Allow inheritable permissions from parent to propagate to this object" (tab Security of the properties window of directory or files).

The objective is to remove the group "Everyone" access that is assigned by default, I tried with DeleteAce but by default the OS inherits rights to "Everyone" for the directories and files.

Best regards and thanks in advance...

cvillacrizv
0
cvillacrizv
Asked:
cvillacrizv
  • 3
1 Solution
 
xSinbadCommented:
Is this the sort of thing you are after?
0
 
xSinbadCommented:
Is this the sort of thing you are after?

http://support.microsoft.com/default.aspx?scid=kb;EN-US;q279682

0
 
cvillacrizvAuthor Commented:
xSinbad,

The code in the reference helped me to complete my program..

Really to work with NT_Security_2.dll is simpler than to use the security APIs by yourself...

Thanks a lot,
cvillacrizv
0
 
xSinbadCommented:
Just glad I could help.

Cheers
Marcus
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

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