// ntddk.h
NTSYSAPI NTSTATUS RtlVolumeDeviceToDosName(
[in] PVOID VolumeDeviceObject,
[out] PUNICODE_STRING DosName
);
View the official Windows Driver Kit DDI referenceNo description available.
The RtlVolumeDeviceToDosName routine is obsolete for Windows XP and later versions of Windows. Use IoVolumeDeviceToDosName instead.
RtlVolumeDeviceToDosName returns the MS-DOS path for a specified device object that represents a file system volume.
VolumeDeviceObject [in]Pointer to a device object that represents a volume device object created by a storage class driver.
DosName [out]Pointer to a Unicode string containing the MS-DOS path of the volume device object specified by VolumeDeviceObject.
RtlVolumeDeviceToDosName returns STATUS_SUCCESS or an appropriate error status.
The behavior of this routine is identical to that of IoVolumeDeviceToDosName. For more information about how to use this routine, see IoVolumeDeviceToDosName.
Drivers that must work on older NT-based operating systems may use this routine. Drivers written for Windows XP and later must use IoVolumeDeviceToDosName instead.