Hi All,
I am a novice in driver development. I need to get the device object of a
device whose handle I am passing from the user mode using an IOCTL. How
can I get the device object based on the handle to the device.
Please help.
Thanks
Avi
Hi All,
I am a novice in driver development. I need to get the device object of a
device whose handle I am passing from the user mode using an IOCTL. How
can I get the device object based on the handle to the device.
Please help.
Thanks
Avi
You can use
ObReferenceObjectByHandle
See DDK docs for details.
-Avinash.
-----Original Message-----
From: Brain [mailto:xxxxx@hotmail.com]
Sent: Thursday, October 23, 2003 7:03 PM
To: Windows File Systems Devs Interest List
Subject: [ntfsd] How to get device object based on handle.
Hi All,
I am a novice in driver development. I need to get the device object of
a
device whose handle I am passing from the user mode using an IOCTL. How
can I get the device object based on the handle to the device.
Please help.
Thanks
Avi
You are currently subscribed to ntfsd as: xxxxx@commvault.com
To unsubscribe send a blank email to xxxxx@lists.osr.com
First ObReferenceObjectByHandle to get the file object, then
IoGetRelatedDeviceObject to get the device object.
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com
----- Original Message -----
From: “Brain”
To: “Windows File Systems Devs Interest List”
Sent: Friday, October 24, 2003 3:02 AM
Subject: [ntfsd] How to get device object based on handle.
> Hi All,
>
> I am a novice in driver development. I need to get the device object of a
> device whose handle I am passing from the user mode using an IOCTL. How
> can I get the device object based on the handle to the device.
> Please help.
> Thanks
>
> Avi
>
> —
> You are currently subscribed to ntfsd as: xxxxx@storagecraft.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com