How can I create a file in a directory protected with the ReadOnly access rule?

Use the CBFSFilter::CreateNonCbFile() method. When calling the method, combine FILE_FLAG_BACKUP_SEMANTICS, FILE_ATTRIBUTE_DIRECTORY, and FILE_FLAG_POSIX_SEMANTICS in the FlagsAndAttributes parameter and set CreationDisposition to the FILE_CREATE parameter.

Ready to get started?

Learn more about Callback Technologies or download a free trial.

Download Now