Solved

Using SetSecurityDescriptorControl

Posted on 2002-03-13
4
583 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

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

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
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
Course of the Month5 days, 3 hours left to enroll

635 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