Purge cache of volume

I’ve made a file system filter driver.
I want to purge the cache of a whole volume.
CcPurgeCacheSection() works with files but if I try it for example with
\DosDevices\D:\ the system crashes.
Does it mean that if I want to purge the volume I should purge it file by
file.
Can’t I just purge the VCB cache. I have not tried it because I don’t know
how to obtain the VCB.

I’ll be very greatful if you have any ideas.

Thank you!
Best!
Jack


Get Your Private, Free Email at http://www.hotmail.com