Solved

Set NTFS permissions

Posted on 2001-06-18
4
295 Views
Last Modified: 2008-01-09
I need to create a little program that would run in a DOS window and that would enable me to change a file's or a folder's NTFS permissions.
I can't find the right fonction to do so.
Could anyone help me?
(I program in BC5)

Thanks
0
Comment
Question by:jltari
  • 2
4 Comments
 
LVL 1

Expert Comment

by:Black_End
ID: 6203017
The Sceurity Interface on Win32 is not easy to use, anyways start with SetNamedSecurityInfo
0
 
LVL 86

Expert Comment

by:jkr
ID: 6203028
'SetFileSecurity()' is your API of choice - see http://msdn.microsoft.com/library/psdk/winbase/acctrlow_6yk3.htm ('Allowing Access Using the Low-Level Functions') and http://msdn.microsoft.com/library/psdk/winbase/acctrlow_9377.htm ('Denying Access Using Low-Level Functions')
0
 
LVL 86

Accepted Solution

by:
jkr earned 50 total points
ID: 6203086
OK, here we go: THE complete and thorough sample about using the NT security APIs with C++ is the source code of 'CaCLs' at http://msdn.microsoft.com/library/devprods/vs6/visualc/vcsample/vcsmpcacls.htm
0
 
LVL 3

Author Comment

by:jltari
ID: 6207052
Thanks a lot
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Building cUrl in Windows v7.43.0 4 36
thread-safe code in c++ 2 116
Precision Problem in C++ 7 44
One named event, multiple event handlers 2 24
Often, when implementing a feature, you won't know how certain events should be handled at the point where they occur and you'd rather defer to the user of your function or class. For example, a XML parser will extract a tag from the source code, wh…
Introduction This article is a continuation of the C/C++ Visual Studio Express debugger series. Part 1 provided a quick start guide in using the debugger. Part 2 focused on additional topics in breakpoints. As your assignments become a little more …
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

828 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