SidCln Sample: Security Functions

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

The SidCln sample demonstrates some of the security functions. It provides a sample utility that recovers on-disk resources that remain allocated to deleted user accounts.

Building SDK Samples

This sample uses the following keywords:

charlower; copysid; crackargs; deleteace; deleteacesasappropriate; displayhelp; doalldirsinonedir; domatchingfilesinonedir; doonefileordir; findfirstfile; findnextfile; free; getace; getaclinformation; getcurrentprocess; getfullfileordirname; getlasterror; getlengthsid; getprocesssid; getsecuritydescriptorcontrol; getsecuritydescriptordacl; getsecuritydescriptorgroup; getsecuritydescriptorowner; getsecuritydescriptorsacl; initializesecuritydescriptor; isvalidacl; isvalidsecuritydescriptor; isvalidsid; lookupprivilegevalue; malloc; openprocesstoken; perr; pmsg; printappstyleapierror; printf; setcurrentdirectory; setsecuritydescriptordacl; setsecuritydescriptorgroup; setsecuritydescriptorowner; setsecuritydescriptorsacl; strcmp; strcpy; takeownershipifappropriate