FileObject -> drive/ device.

Hello,

Is it possible to get information about the physical device, a file is
located on, if I’m having a FileObject?

e.g:
“FileObject” describes a file “\mytestfile.txt” on a cd drive.
Is it possible to find the cddrive (device) the file is located on ?

Best Regards
Michael

FileObject->DeviceObject points to the device object on which the file is
opened. That’s exactly what you need.

-htfv

----- Original Message -----
From: “Michael Kurz”
To: “Windows System Software Devs Interest List”
Sent: Friday, September 19, 2003 11:58 AM
Subject: [ntdev] FileObject -> drive/ device.

> Hello,
>
> Is it possible to get information about the physical device, a file is
> located on, if I’m having a FileObject?
>
> e.g:
> “FileObject” describes a file “\mytestfile.txt” on a cd drive.
> Is it possible to find the cddrive (device) the file is located on ?
>
> Best Regards
> Michael
>
>
> —
> Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@vba.com.by
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>
>