FS Mount

I am trying to figure out at boot time, what routine call will cause a volume to be mounted. I saw that the system partiton (volume) is automatically mounted, but I want to force the OS to mount other partitions that are not used at boot time. How can I enumerate existing volumes, and what will cause the OS to mount them.

And another thing. When can I rely on the object manager routines (ZwCreateDirectoryObject and ZwQueryDirectoryObject) .
Are their safe to rely at boot time ?

Any ZwCreateFile targeting a file/directory on the volume will suite.


Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com

wrote in message news:xxxxx@ntfsd…
> I am trying to figure out at boot time, what routine call will cause a volume
to be mounted. I saw that the system partiton (volume) is automatically
mounted, but I want to force the OS to mount other partitions that are not used
at boot time. How can I enumerate existing volumes, and what will cause the OS
to mount them.
>
> And another thing. When can I rely on the object manager routines
(ZwCreateDirectoryObject and ZwQueryDirectoryObject) .
> Are their safe to rely at boot time ?
>

OK. But How can I enumerate all volmues, mounted or unmounted .
Is the directory object something reliable ?