IoVolumeDeviceToDosName( ) doesn't work in AddDevice for Filter driver

I am trying to get dos name(C:) from volume name(“\Device\HarddiskVolume1”)
using IoVolumeDeviceToDosName( ). But its not working.
Can someone help me find out whether it is at all possible to do that in
AddDevice() or I have to wait untill StartDevice.

Thanks in advance

I am afraid you need to wait some moment after StartDevice completion. Dos name is a symbolic link created for user space convenience and is not required for system operations in kernel mode.

Thanks. That was helpful

On Fri, May 5, 2017 at 1:11 PM, wrote:

> I am afraid you need to wait some moment after StartDevice completion. Dos
> name is a symbolic link created for user space convenience and is not
> required for system operations in kernel mode.
>
> —
> NTFSD is sponsored by OSR
>
>
> MONTHLY seminars on crash dump analysis, WDF, Windows internals and
> software drivers!
> Details at http:
>
> To unsubscribe, visit the List Server section of OSR Online at <
> http://www.osronline.com/page.cfm?name=ListServer&gt;
></http:>