How to Dismount and remount the volume in miniFilter driver??

I know Dismounting and remounting the volume can resolve the “memory mapped
file” question, how to write relative code in miniFilter driver?? I want to
dismount and remount the volume before read files.

thanks anyway.

I assume, if I understand it correctly, you want to implement

dismounting volume before IRP_MJ_READ ? 

I don’t think dismounting volume is a good thing while processing

an IRP. Infact, I think it’s not even possible. Not speaking about

how disastrous this would be for running applications with

open files.

And even if, pure theoretically, this would be possible,

I know better ways how to slow down the computer to zero speed.

L.