CDFS

Dear All!

I’ve got the following problem: when I use CreateFile function (GENERIC_READ + FILE_SHARE_WRITE | FILE_SHARE_READ) to open a CDROM drive if I call CreateFile when there is no disk in the drive, NT mounts RAW file system to that drive. If I insert a CD while the handle is open CDFS cannot be mounted. So I cannot access the inserted disk.
If I call CreateFile when there is a CD in the drive everything works well. I can change CDs while the handle is opened and access these CDs.

The question: how do I prevent mounting RAW file system when using CreateFile?

Thanx a lot for any ideas,
Max Lyadvinsky