Solved

Using SetSecurityDescriptorControl

Posted on 2002-03-13
4
558 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
Comment Utility
Is this the sort of thing you are after?
0
 
LVL 6

Accepted Solution

by:
xSinbad earned 200 total points
Comment Utility
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
Comment Utility
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
Comment Utility
Just glad I could help.

Cheers
Marcus
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

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…
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
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…

744 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now