Re: Translating DeviceObject to HarddiskVolume# name or Drive Letter

Try IoGetDeviceObjectPointer on “\??\%c:” (with %c = c to z).
Check the AttachedDevice in your DO to find out the highest driver in the
stack.
The resulting DO (of IoGetDeviceObjectPointer) is the DO of the highest
driver in the stack
(or your own, if you are the highest).

Else

xxxxx@rdperf.com
Sent by: To: “NT Developers Interest List”
xxxxx@lis cc:
ts.osr.com Subject: [ntdev] Translating DeviceObject to HarddiskVolume# name or
Drive Letter

31.10.2002 15:56
Please respond to “NT
Developers Interest
List”

I have a Device Object address in a filter driver that I need to
translate to a name like “\Device\HarddiskVolume1” or “??\C:”.

This is from within an upper filter driver on that device.

I have scoured the docs and the WEB and not had luck with figuring
this out. I see how the DISKPERF sample gets a
\Device\Harddisk#\Partition#
name, but that isn’t any help because that is NOT the same device level
that I am filtering.

Any ideas??? Also a sample code snippet would really be appreciated,
but just ideas would also be helpful.

thanks, Rick…


You are currently subscribed to ntdev as: xxxxx@utimaco.de
To unsubscribe send a blank email to %%email.unsub%%