Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Using SetSecurityDescriptorControl

Posted on 2002-03-13
4
Medium Priority
?
592 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 800 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
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…
Suggested Courses

885 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