The RtlVolumeDeviceToDosName routine is obsolete for Windows® XP and later. Use IoVolumeDeviceToDosName instead.
RtlVolumeDeviceToDosName returns the MS-DOS® path for a specified device object that represents a file system volume.
NTSTATUS
RtlVolumeDeviceToDosName(
IN PVOID VolumeDeviceObject,
OUT PUNICODE_STRING DosName
);
RtlVolumeDeviceToDosName returns STATUS_SUCCESS or an appropriate error status.
Declared in ntddk.h. Include ntddk.h.
RtlVolumeDeviceToDosName allocates the Unicode string buffer for the MS-DOS path from the memory pool. After the buffer is no longer required, a caller of this routine should use ExFreePool to free it.
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.