NetAccessApply or Net32AccessApply

After an access permission record is defined for a directory, the NetAccessApply API replicates that record, applying it to all subdirectories under that directory.

This API also updates the access permission for any file within the directory tree that already has an access permission record. It does not create a record for a file that does not already have one. (If it does not have its own access permission record, a file defaults to the record of its parent directory.) This API does not replace existing audit trail settings, but it does apply the audit settings of the specified directory to any of its subdirectories that have no audit settings.