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

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

Ready to get started?

Learn more about Callback Technologies or download a free trial.

Download Now