When filesystems are dismounted?

Hi, All

I’m writting disk driver for NT4 based on RamDisk sample . At ShutdownDispatch I want delete all device objects
I create that represent logical drives. I know that if I delete device while filesystem is still mounted on it
will lead to bad things. How can I be sure that filesystems are dismounted from my devices?
If they are not dismounted on ShutdownDispatch, how can I dismount them, or I need to delay
deletion of device objects?

Regards, Dennis


Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com

> If they are not dismounted on ShutdownDispatch, how can I dismount them,

Filesystems are dismounted by one of the FSCTL functions. It must be in
IRP_MJ_FILE_SYSTEM_CONTROL path.

Max