from \Device\HarddiskDmVolumes\PhysicalDmVolumes\BlockVolume1 to C: not in a filter driver

Hello,

My kernel mode driver does not have any information about volume device
objects. It is not a file system filter. How can I get a volume’s DOS drive
name either in kernel mode or user mode from its physical name?

Thanks,

Shangwu

From user mode, do something like:

  1. Enumerate all volumes using FindFirstVolume FindNextVolume
  2. Use QueryDosDevices to map from volume symbolic link names to volume
    device names to identify the volume you are interested int.
  3. Use FindFirstVolumeMountPoint/FindNextVolumeMountPoint to enumerate all
    the volume mountpoints for the volume identified in step (2) using the name
    found in step (1).

Details etc. are your problem.

I think this is about the 12th time I’ve answered this question.

=====================
Mark Roddy DDK MVP
Windows 2003/XP/2000 Consulting
Hollis Technology Solutions 603-321-1032
www.hollistech.com

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Shangwu
Sent: Thursday, February 02, 2006 5:29 PM
To: Windows File Systems Devs Interest List
Subject: [ntfsd] from
\Device\HarddiskDmVolumes\PhysicalDmVolumes\BlockVolume1 to
C: not in a filter driver

Hello,

My kernel mode driver does not have any information about
volume device objects. It is not a file system filter. How
can I get a volume’s DOS drive name either in kernel mode or
user mode from its physical name?

Thanks,

Shangwu


Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17

You are currently subscribed to ntfsd as:
xxxxx@hollistech.com To unsubscribe send a blank email to
xxxxx@lists.osr.com

Thanks Mark for your kind response.

Shangwu

“Mark Roddy” wrote in message news:xxxxx@ntfsd…
> From user mode, do something like:
>
> 1) Enumerate all volumes using FindFirstVolume FindNextVolume
> 2) Use QueryDosDevices to map from volume symbolic link names to volume
> device names to identify the volume you are interested int.
> 3) Use FindFirstVolumeMountPoint/FindNextVolumeMountPoint to enumerate all
> the volume mountpoints for the volume identified in step (2) using the
> name
> found in step (1).
>
> Details etc. are your problem.
>
> I think this is about the 12th time I’ve answered this question.
>
> =====================
> Mark Roddy DDK MVP
> Windows 2003/XP/2000 Consulting
> Hollis Technology Solutions 603-321-1032
> www.hollistech.com
>
>> -----Original Message-----
>> From: xxxxx@lists.osr.com
>> [mailto:xxxxx@lists.osr.com] On Behalf Of Shangwu
>> Sent: Thursday, February 02, 2006 5:29 PM
>> To: Windows File Systems Devs Interest List
>> Subject: [ntfsd] from
>> \Device\HarddiskDmVolumes\PhysicalDmVolumes\BlockVolume1 to
>> C: not in a filter driver
>>
>> Hello,
>>
>> My kernel mode driver does not have any information about
>> volume device objects. It is not a file system filter. How
>> can I get a volume’s DOS drive name either in kernel mode or
>> user mode from its physical name?
>>
>> Thanks,
>>
>> Shangwu
>>
>>
>>
>> —
>> Questions? First check the IFS FAQ at
>> https://www.osronline.com/article.cfm?id=17
>>
>> You are currently subscribed to ntfsd as:
>> xxxxx@hollistech.com To unsubscribe send a blank email to
>> xxxxx@lists.osr.com
>>
>
>
>
>