From: Jamey Kirby [jkirby@storagecraft.com] Sent: Friday, June 18, 1999 11:15 AM To: Peter van Sebille; Robert Fernando Cc: ntdev; ntfsd Subject: [ntdev] RE: [ntfsd] clearing the cdrom cache from inside a filter driver DO_VERIFY_VOLUME and return STATUS_VERIFY_REQUIRED. You must also support the media change count via IOCTL_CDROM_CHECK_VERIFY and IOCTL_CDROM_MEDIA_REMOVAL functions. Jamey Kirby StorageCraft -----Original Message----- From: owner-ntfsd@atria.com [mailto:owner-ntfsd@atria.com]On Behalf Of Peter van Sebille Sent: Friday, June 18, 1999 12:48 AM To: Robert Fernando Cc: ntdev; ntfsd Subject: Re: [ntfsd] clearing the cdrom cache from inside a filter driver Robert, Since I've seen your questions popping up once in a while without anyone answering I'll give it a try. >From the filter driver pretend that the media has changed. Then, play along with the I/O Manager's attempt to validate the media and do it in such a way that the "new" media is different from the "old" media. As a result the media gets remounted. I'm not sure about 2). If you do the above properly, then explorer will detect the media change (and also detects the new media is different from the old one) and therefor it could be that it closes all windows for the "old" media. However, it could also be (more likely) that it tries to reload the contents of the showing directory; since it's essentially the same media the windows just refreshes. If so, then you'll end up with cached data again (you could deny access after the media change though). BTW, you have not stated your original problem for which you seem to be convinced that 1) and 2) are the solutions. It could be that they are, but it could also be that people on this forum see different solutions! Give it a go.... Hope this helps. cheers, Peter Robert Fernando wrote: > > Hi all, > > 1: What is the best way from inside a filter device driver make nt 4.0 + > invalidate the contents of a cached cdrom drive ie cache flush. > > 2: What is the best way from a win 32 program , to automatically close down > all the windows asociated with a a given cd rom browsed from my computer. > > Thanks > Robert Fernando > > - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - > [ To unsubscribe, send email to ntfsd-request@atria.com with body > UNSUBSCRIBE (the subject is ignored). ] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [ To unsubscribe, send email to ntfsd-request@atria.com with body UNSUBSCRIBE (the subject is ignored). ] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [ To unsubscribe, send email to ntdev-request@atria.com with body UNSUBSCRIBE (the subject is ignored). ]