Denying new files creation on write once CDs

Hi All,

We are developing a file system filter driver on Windows 2000, in which we
want to avoid creation of files on CDs by applications depending on the
contents of the file. How can I do it.

My observations are:

  1. If it is a write once CD we can not delete the file once it is written.
  2. so we have to catch write request of any file and check if it is for CD
    or not, but here we can not know what the contents of the file will be.
  3. If we allow create request then a empty file will be creaed which can not
    be deleted.

So is there any better ways to deal the problem.

Any information is helpful.

Thanks,
Kedar.

> We are developing a file system filter driver on Windows 2000, in which we

want to avoid creation of files on CDs by applications depending on the
contents of the file.

You cannot. When file is created, it is created either zero-size or
zero-filled, so, it has no contents.

Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com