Questions on IoGetBaseFileSystemDeviceObject() usage

Hi,

The NTIFS.H contains the declaration of the
IoGetBaseFileSystemDeviceObject() routine.
As I understand, it returns the device object mounted by the file system, on
which the
specified file object is opened, i.e. FileObject->Vpb->DeviceObject. Am I
right?

Can I use it on NT/2k/XP?
Will it always work, if the file object passed in is the valid file object?
Are there any side effects of using this routine?

Thank you very much in advance for any information.

Regards,
Leonid Zhigunov.

Yes. A very good routine. Similar to IoGetRelatedDeviceObject, but
does not goes up the chain of the attached FS filters.

Max

“Leonid Zhigunov” wrote in message
news:LYRIS-2023-110286-2003.05.21-08.26.10–maxim#xxxxx@lis
ts.osr.com
> Hi,
>
> The NTIFS.H contains the declaration of the
> IoGetBaseFileSystemDeviceObject() routine.
> As I understand, it returns the device object mounted by the file
system, on
> which the
> specified file object is opened, i.e. FileObject->Vpb->DeviceObject.
Am I
> right?
>
> Can I use it on NT/2k/XP?
> Will it always work, if the file object passed in is the valid file
object?
> Are there any side effects of using this routine?
>
> Thank you very much in advance for any information.
>
> Regards,
> Leonid Zhigunov.
>
>
>
>
> —
> You are currently subscribed to ntfsd as: xxxxx@storagecraft.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com