is there any way to find the DOS pathname for "\Device\HarddiskVolume2"
like "C:".
The path is initially from ZwQueryInformationProcess(), IoVolumeDeviceToDosName()
cannot be used in this case.
Any suggestion, will be appreciated.
is there any way to find the DOS pathname for "\Device\HarddiskVolume2"
like "C:".
The path is initially from ZwQueryInformationProcess(), IoVolumeDeviceToDosName()
cannot be used in this case.
Any suggestion, will be appreciated.
On 6/8/12, xxxxx@yahoo.com wrote:
> is there any way to find the DOS pathname for "\Device\HarddiskVolume2"
> like "C:".
>
> The path is initially from ZwQueryInformationProcess(),
> IoVolumeDeviceToDosName()
> cannot be used in this case.
>
> Any suggestion, will be appreciated.
>
> —
> NTFSD is sponsored by OSR
>
> For our schedule of debugging and file system seminars visit:
> http://www.osr.com/seminars
>
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>
hi…
review this link.
it may help.
http://msdn.microsoft.com/en-us/library/windows/desktop/aa365461(v=vs.85).aspx
–
Regards
Arunkumar Nonascii
QueryDosDevice() working ok, is just reverse order:
wchar_t awcBuf[513];
QueryDosDeviceW(L"C:“, awcBuf, 513); // awcBuf…output as L”\Device\HarddiskVolume1"
Thank you.
You should realize there is a one to many mapping between device paths and
symbolic links names. That’s why it cannot work in reverse order. You can
pass in NULL to get a list of all DOS device names or otherwise pass in all
leters of the alphabet one by one. (Italians be aware that the British
alphabet contains 5 letters more). BTW there is a discussion on this topic a
few threads below in case you missed it.
//Daniel
wrote in message news:xxxxx@ntfsd…
> QueryDosDevice() working ok, is just reverse order:
>
> wchar_t awcBuf[513];
>
> QueryDosDeviceW(L"C:“, awcBuf, 513); // awcBuf…output as
> L”\Device\HarddiskVolume1"
>
> Thank you.
>
>