Jump-start your project by learning from devs who
write Windows drivers and file systems every day.
Take an OSR seminar!

OSR is Hiring! Click here to find out more.

Upcoming OSR Seminars:
Windows Internals & Software Drivers Lab, Santa Clara, CA 5-9 August, 2013
Kernel Debugging & Crash Analysis for Windows Lab, Santa Clara, CA 9-13 September, 2013
Writing WDF Drivers for Windows Lab, Boston, MA 7-11 October, 2013
Developing File Systems for Windows, Seattle, WA 5-8 November, 2013


Go Back   OSR Online Lists > ntfsd
Welcome, Guest
You must login to post to this list
  Message 1 of 5  
08 Jun 12 05:18
RICKY GAI
xxxxxx@yahoo.com
Join Date: 04 Jun 2012
Posts To This List: 77
DOS path for "\Device\HarddiskVolume2" ?

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.
  Message 2 of 5  
08 Jun 12 05:48
Arun kumar Non ascii
xxxxxx@gmail.com
Join Date: 07 May 2012
Posts To This List: 1
Re: DOS path for "\Device\HarddiskVolume2" ?

On 6/8/12, xxxxx@yahoo.com <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. > > --- <...excess quoted lines suppressed...> hi.. review this link. it may help. http://msdn.microsoft.com/en-us/library/windows/desktop/aa365461%28v=vs.85%29.asp x -- Regards Arunkumar Nonascii
  Message 3 of 5  
08 Jun 12 06:56
Eugene
xxxxxx@mail.ru
Join Date: 21 Feb 2001
Posts To This List: 53
RE: DOS path for "\Device\HarddiskVolume2" ?

Hi, Ricky! Look at this: http://www.osronline.com/showthread.cfm?link=203249 Eugene.
  Message 4 of 5  
11 Jun 12 04:39
RICKY GAI
xxxxxx@yahoo.com
Join Date: 04 Jun 2012
Posts To This List: 77
RE: DOS path for "\Device\HarddiskVolume2" ?

QueryDosDevice() working ok, is just reverse order: wchar_t awcBuf[ 513 ]; QueryDosDeviceW(L"C:", awcBuf, 513); // awcBuf...output as L"\Device\HarddiskVolume1" Thank you.
  Message 5 of 5  
11 Jun 12 04:54
Daniel Terhell
xxxxxx@resplendence.com
Join Date: 14 Apr 2004
Posts To This List: 362
Re: DOS path for "\Device\HarddiskVolume2" ?

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 <xxxxx@yahoo.com> wrote in message news:94034@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. > >
Posting Rules  
You may not post new threads
You may not post replies
You may not post attachments
You must login to OSR Online AND be a member of the ntfsd list to be able to post.

All times are GMT -5. The time now is 15:23.


Copyright ©2012, OSR Open Systems Resources, Inc.
Based on vBulletin Copyright ©2000 - 2005, Jelsoft Enterprises Ltd.
Modified under license