CaCLs: Display or Modify Access Control Lists (ACLS) of Files

Click to open or copy the files for the CaCLs sample.

The CACLS tool displays or modifies the Access Control Lists (ACLs) of files.

Main Files

File Description
Accacc.hxx Class encapsulating NT security user ACCACC.
Account.cxx Class wrapping account sid and name.
Account.hxx Class encapsulating NT security user account.
Daclwrap.cxx Class encapsulating file security.
DumpSec.cxx Class to dump file security ACL.
DumpSec.hxx Class encapsulating file security.
FileEnum.cxx Class encapsulating file enumeration, including a deep option.
FileEnum.hxx Class encapsulating file enumeration.
Filesec.cxx CFileSecurity class encapsulating SECURITY_DESCRIPTOR.
Filesec.hxx Class encapsulating file security.
T2.hxx General include items for the Control ACLS program.

Building SDK Samples

This sample uses the following keywords:

_acetype; _allocated; _allocatenewacl; _cacethissid; _ccaa; _domain; _downdir; _fcannotaccess; _fdeep; _fillnewacl; _findeep; _foundinheritance; _froot; _fsid; _getnewaclsize; _handle; _ialize; _initdir; _mask; _name; _nextdir; _nextlocal; _pah; _pcfe; _pdacl; _psd; _psid; _pwfilename; _pwfileposition; _savemask; _setallowedace; _setdeniedace; _statbufsize; _stricmp; _system; _wcsicmp; accessmask; acetype; add2ptr; addace; addinheritance; atol; buildacl; ca; caccount; caccountaccess; cdaclwrap; cds; cdumpsecurity; cfe; cfileenumerate; cfilesecurity; cfs; clearaccessmask; closehandle; debugenumerate; display; display_mask; display_sids; displayaces; enumerate_extra; enumerate_fail; enumerate_returns; enumerate_stat; equalsid; errors; exit; fa; fastallocator; fgets; findclose; findfirstfile; findnextfile; formatmessage; formatmessagea; fprintf; fwprintf; getaccountdomain; getaccountname; getaccountsid; getbuf; getcmdlineargs; getconsoleoutputcp; getcurrentprocessid; getfilesecurity; getfullpathname; getlasterror; getlengthsid; getnextace; getsdgroup; getsdowner; getsecuritydescriptordacl; getsecuritydescriptorgroup; getsecuritydescriptorowner; getsystemdefaultlangid; getuserandaccess; initializeacl; last_error; localalloc; localfree; lookupaccountname; lookupaccountsid; makelangid; makelcid; mbstowcs; memcpy; modifyaces; multibytetowidechar; next; openprocess; openprocesstoken; opentoken; primarylangid; printf; printface; printfmask; printfsid; printmessage; reinit; resetace; setaccess; setfilesecurity; setfs; setlocale; setthreadlocale; sid; size; sprintf; strchr; testinheritance; usage; va_end; va_start; verbose; verboser; wcscat; wcscmp; wcscpy; wcslen; widechartomultibyte; wprintf