cacls cmd equivalent in win32
-
Hi all Could anyone please let me know whats the equivalent API for "cacls command" ? (cacls is used to modify the user rights settings on a file) As of now I use ShellExecute to run the batch file which contains this cmd . I would like to avoid using batch file . Thanks in advance .
redindian
-
Hi all Could anyone please let me know whats the equivalent API for "cacls command" ? (cacls is used to modify the user rights settings on a file) As of now I use ShellExecute to run the batch file which contains this cmd . I would like to avoid using batch file . Thanks in advance .
redindian
Haven't you searched msdn Access Control Lists[^]
dharani wrote:
As of now I use ShellExecute to run the batch file which contains this cmd . I would like to avoid using batch file .
If so, why don't you execute the command directly using ShellExecute without a batch file.
-
Hi all Could anyone please let me know whats the equivalent API for "cacls command" ? (cacls is used to modify the user rights settings on a file) As of now I use ShellExecute to run the batch file which contains this cmd . I would like to avoid using batch file . Thanks in advance .
redindian
It's not done by a single API function. Please read this: The Windows Access Control Model Part 2[^].
Maxwell Chen