<p>I need to change the permissions of a directory to be owned by the Everyone user with all access rights on this directory.  I'm a bit new to the Win32 API, so I'm somewhat lost in the SetSecurity* functions.</p>

Ok, I figured it out:
```
```
SetSecurityInfo(hDir, SE_FILE_OBJECT, DACL_SECURITY_INFORMATION, NULL, NULL, NULL, NULL);
```
```
This will give all permissions to all users for the given directory handle.