Solved

Using SetSecurityDescriptorControl

Posted on 2002-03-13
4
575 Views
Last Modified: 2012-05-04
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
Comment
Question by:cvillacrizv
  • 3
4 Comments
 
LVL 6

Expert Comment

by:xSinbad
ID: 6863483
Is this the sort of thing you are after?
0
 
LVL 6

Accepted Solution

by:
xSinbad earned 200 total points
ID: 6863485
Is this the sort of thing you are after?

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

0
 
LVL 1

Author Comment

by:cvillacrizv
ID: 6863898
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
 
LVL 6

Expert Comment

by:xSinbad
ID: 6863907
Just glad I could help.

Cheers
Marcus
0

Featured Post

Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question