How to identify a boot volume in instance setup callback?

Hi All,

In instance setup callback I want to ckeck wether I am getting attached to
boot volume or not.

Please tell me how can I identify a boot volume for checking in instance
setup callback.

Thanks & Regards,
Amit.

What is the ‘boot volume’? There are two names used by Microsoft for
‘volumes’ involved in getting the OS to start and run. If running Win7 Pro,
Enterprise, or Ultimate the boot files are located on a small partition to
accommodate BitLocker.

wrote in message news:xxxxx@ntfsd…
> Hi All,
>
> In instance setup callback I want to ckeck wether I am getting attached to
> boot volume or not.
>
> Please tell me how can I identify a boot volume for checking in instance
> setup callback.
>
> Thanks & Regards,
> Amit.
>

IoGetBootDiskInformation helps a lot.


Maxim S. Shatskih
Windows DDK MVP
xxxxx@storagecraft.com
http://www.storagecraft.com

wrote in message news:xxxxx@ntfsd…
> Hi All,
>
> In instance setup callback I want to ckeck wether I am getting attached to
> boot volume or not.
>
> Please tell me how can I identify a boot volume for checking in instance
> setup callback.
>
> Thanks & Regards,
> Amit.
>

Following link can be useful
http://www.osronline.com/ShowThread.cfm?link=138447

Thanks Mayur,

But I dont know how to get device object as I have only Instance pointer
available in instance setup callback. I am in a minifilter driver.

You will get FLT_RELATED_OBJECTS as argument in instance setup callback, from this you can get FLT_VOLUME, which can be used to call FltGetDiskDeviceObject and receive physical device object.