Hi,
HOw can I get the drive letter of my volume device object without using
RtlVolumeDeviceToDosName or IoVolumeDeviceToDosName?
Where can I use it?
In MountCOMpleion routine?
Thank You!
cheers,
vincent
Get MSN Hotmail alerts on your mobile. http://en-asiasms.mobile.msn.com/
“vincent gambit” wrote in message
news:xxxxx@ntfsd…
>
> Hi,
>
> HOw can I get the drive letter of my volume device object without using
> RtlVolumeDeviceToDosName or IoVolumeDeviceToDosName?
>
PLEASE check the FAQ and the archives before posting questions.
Please see the IFS FAQ question 26:
http://www.osronline.com/article.cfm?id=17#Q26
You can search the archives from the OSR Online home page.
Peter
OSR
Hi,
I found a way around RtlVolumeDeviceToDosName because I haven’t
succeeded to make it work, and the algorithm is:
- I get the serial number from the VPB for the volume
- send this number to the user mode
- user mode parses all the visible volumes using GetLogicalDrives and
gets the serial number for each using GetVolumeInformation and return
the letter that matches.
- return the letter to kernel mode
I think this algorithm is general enough, it worked for me for all NTs.
Peter Viscarola wrote:
“vincent gambit” wrote in message
>news:xxxxx@ntfsd…
>
>
>>Hi,
>>
>>HOw can I get the drive letter of my volume device object without using
>>RtlVolumeDeviceToDosName or IoVolumeDeviceToDosName?
>>
>>
>>
>
>PLEASE check the FAQ and the archives before posting questions.
>
>Please see the IFS FAQ question 26:
>
>http://www.osronline.com/article.cfm?id=17#Q26
>
>You can search the archives from the OSR Online home page.
>
>Peter
>OSR
>
>
>
>—
>You are currently subscribed to ntfsd as: xxxxx@ipdevel.ro
>To unsubscribe send a blank email to xxxxx@lists.osr.com
>
>
>
>
>
>
There is another mechanism applicable from kernel mode before user mode
systems are available. Query the objects using object manager API (ObXxx).
It works reliable for me on 2k/XP and can be done for NT even though the
object structure is a bit different.
----- Original Message -----
From: “Daniel Turcanu”
To: “Windows File Systems Devs Interest List”
Sent: Tuesday, September 30, 2003 7:18 PM
Subject: [ntfsd] Re: get drive letter howto?
> Hi,
> I found a way around RtlVolumeDeviceToDosName because I haven’t
> succeeded to make it work, and the algorithm is:
> - I get the serial number from the VPB for the volume
> - send this number to the user mode
> - user mode parses all the visible volumes using GetLogicalDrives and
> gets the serial number for each using GetVolumeInformation and return
> the letter that matches.
> - return the letter to kernel mode
> I think this algorithm is general enough, it worked for me for all NTs.
>
> Peter Viscarola wrote:
>
> >“vincent gambit” wrote in message
> >news:xxxxx@ntfsd…
> >
> >
> >>Hi,
> >>
> >>HOw can I get the drive letter of my volume device object without using
> >>RtlVolumeDeviceToDosName or IoVolumeDeviceToDosName?
> >>
> >>
> >>
> >
> >PLEASE check the FAQ and the archives before posting questions.
> >
> >Please see the IFS FAQ question 26:
> >
> >http://www.osronline.com/article.cfm?id=17#Q26
> >
> >You can search the archives from the OSR Online home page.
> >
> >Peter
> >OSR
> >
> >
> >
> >—
> >You are currently subscribed to ntfsd as: xxxxx@ipdevel.ro
> >To unsubscribe send a blank email to xxxxx@lists.osr.com
> >
> >
> >
> >
> >
> >
>
>
>
>
>
> —
> You are currently subscribed to ntfsd as: xxxxx@linkwave.org
> To unsubscribe send a blank email to xxxxx@lists.osr.com
HI,
thanks for your reply.
BUt this method require a user app.
I do not want to have any user app.
thank you!
cheers,
vincent
From: Daniel Turcanu
>Reply-To: “Windows File Systems Devs Interest List”
>To: “Windows File Systems Devs Interest List”
>Subject: [ntfsd] Re: get drive letter howto?
>Date: Tue, 30 Sep 2003 20:18:33 +0300
>
>Hi,
>I found a way around RtlVolumeDeviceToDosName because I haven’t succeeded
>to make it work, and the algorithm is:
>- I get the serial number from the VPB for the volume
>- send this number to the user mode
>- user mode parses all the visible volumes using GetLogicalDrives and gets
>the serial number for each using GetVolumeInformation and return the letter
>that matches.
>- return the letter to kernel mode
>I think this algorithm is general enough, it worked for me for all NTs.
>
>Peter Viscarola wrote:
>
>>“vincent gambit” wrote in message
>>news:xxxxx@ntfsd…
>>
>>
>>>Hi,
>>>
>>>HOw can I get the drive letter of my volume device object without using
>>>RtlVolumeDeviceToDosName or IoVolumeDeviceToDosName?
>>>
>>>
>>>
>>
>>PLEASE check the FAQ and the archives before posting questions.
>>
>>Please see the IFS FAQ question 26:
>>
>>http://www.osronline.com/article.cfm?id=17#Q26
>>
>>You can search the archives from the OSR Online home page.
>>
>>Peter
>>OSR
>>
>>
>>
>>—
>>You are currently subscribed to ntfsd as: xxxxx@ipdevel.ro
>>To unsubscribe send a blank email to xxxxx@lists.osr.com
>>
>>
>>
>>
>>
>>
>
>
>
>
>
>—
>You are currently subscribed to ntfsd as: xxxxx@hotmail.com
>To unsubscribe send a blank email to xxxxx@lists.osr.com
_________________________________________________________________
Download games, logos, wallpapers and lots more at MSN Mobile!
http://www.msn.com.sg/mobile/
Then another ideea:
In kernel mode open all the drive letters (A:, B:\ etc.) until you find
the device object you want. So you’ll find your drive letter.
vincent gambit wrote:
HI,
thanks for your reply.
BUt this method require a user app.
I do not want to have any user app.
thank you!
cheers,
vincent
> From: Daniel Turcanu
>> Reply-To: “Windows File Systems Devs Interest List”
>>
>> To: “Windows File Systems Devs Interest List”
>> Subject: [ntfsd] Re: get drive letter howto?
>> Date: Tue, 30 Sep 2003 20:18:33 +0300
>>
>> Hi,
>> I found a way around RtlVolumeDeviceToDosName because I haven’t
>> succeeded to make it work, and the algorithm is:
>> - I get the serial number from the VPB for the volume
>> - send this number to the user mode
>> - user mode parses all the visible volumes using GetLogicalDrives and
>> gets the serial number for each using GetVolumeInformation and return
>> the letter that matches.
>> - return the letter to kernel mode
>> I think this algorithm is general enough, it worked for me for all NTs.
>>
>> Peter Viscarola wrote:
>>
>>> “vincent gambit” wrote in message
>>> news:xxxxx@ntfsd…
>>>
>>>
>>>> Hi,
>>>>
>>>> HOw can I get the drive letter of my volume device object without
>>>> using
>>>> RtlVolumeDeviceToDosName or IoVolumeDeviceToDosName?
>>>>
>>>>
>>>>
>>>
>>> PLEASE check the FAQ and the archives before posting questions.
>>>
>>> Please see the IFS FAQ question 26:
>>>
>>> http://www.osronline.com/article.cfm?id=17#Q26
>>>
>>> You can search the archives from the OSR Online home page.
>>>
>>> Peter
>>> OSR
>>>
>>>
>>>
>>> —
>>> You are currently subscribed to ntfsd as: xxxxx@ipdevel.ro
>>> To unsubscribe send a blank email to xxxxx@lists.osr.com
>>>
>>>
>>>
>>>
>>>
>>>
>>
>>
>>
>>
>>
>> —
>> You are currently subscribed to ntfsd as: xxxxx@hotmail.com
>> To unsubscribe send a blank email to xxxxx@lists.osr.com
>
>
> _________________________________________________________________
> Download games, logos, wallpapers and lots more at MSN Mobile!
> http://www.msn.com.sg/mobile/
>
>
> —
> You are currently subscribed to ntfsd as: xxxxx@ipdevel.ro
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>
>
>
>
Hi,
thanks for your reply.
This is not so good.
Because i can’t keep opening all the drive letter because I do not know when
users wil remove or attach new device to the system.Especially laptops.
thank you
cheers,
vincent
From: Daniel Turcanu
>Reply-To: “Windows File Systems Devs Interest List”
>To: “Windows File Systems Devs Interest List”
>Subject: [ntfsd] Re: get drive letter howto?
>Date: Wed, 01 Oct 2003 09:07:06 +0200
>
>Then another ideea:
>In kernel mode open all the drive letters (A:, B:\ etc.) until you find
>the device object you want. So you’ll find your drive letter.
>
>vincent gambit wrote:
>
>>HI,
>>
>>thanks for your reply.
>>BUt this method require a user app.
>>I do not want to have any user app.
>>
>>thank you!
>>
>>cheers,
>>vincent
>>
>>
>>>From: Daniel Turcanu
>>>Reply-To: “Windows File Systems Devs Interest List”
>>>To: “Windows File Systems Devs Interest List”
>>>Subject: [ntfsd] Re: get drive letter howto?
>>>Date: Tue, 30 Sep 2003 20:18:33 +0300
>>>
>>>Hi,
>>>I found a way around RtlVolumeDeviceToDosName because I haven’t succeeded
>>>to make it work, and the algorithm is:
>>>- I get the serial number from the VPB for the volume
>>>- send this number to the user mode
>>>- user mode parses all the visible volumes using GetLogicalDrives and
>>>gets the serial number for each using GetVolumeInformation and return the
>>>letter that matches.
>>>- return the letter to kernel mode
>>>I think this algorithm is general enough, it worked for me for all NTs.
>>>
>>>Peter Viscarola wrote:
>>>
>>>>“vincent gambit” wrote in message
>>>>news:xxxxx@ntfsd…
>>>>
>>>>
>>>>>Hi,
>>>>>
>>>>>HOw can I get the drive letter of my volume device object without using
>>>>>RtlVolumeDeviceToDosName or IoVolumeDeviceToDosName?
>>>>>
>>>>>
>>>>>
>>>>
>>>>PLEASE check the FAQ and the archives before posting questions.
>>>>
>>>>Please see the IFS FAQ question 26:
>>>>
>>>>http://www.osronline.com/article.cfm?id=17#Q26
>>>>
>>>>You can search the archives from the OSR Online home page.
>>>>
>>>>Peter
>>>>OSR
>>>>
>>>>
>>>>
>>>>—
>>>>You are currently subscribed to ntfsd as: xxxxx@ipdevel.ro
>>>>To unsubscribe send a blank email to xxxxx@lists.osr.com
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>
>>>
>>>
>>>
>>>
>>>—
>>>You are currently subscribed to ntfsd as: xxxxx@hotmail.com
>>>To unsubscribe send a blank email to xxxxx@lists.osr.com
>>
>>
>>
>>Download games, logos, wallpapers and lots more at MSN Mobile!
>>http://www.msn.com.sg/mobile/
>>
>>
>>—
>>You are currently subscribed to ntfsd as: xxxxx@ipdevel.ro
>>To unsubscribe send a blank email to xxxxx@lists.osr.com
>>
>>
>>
>>
>
>
>
>
>
>—
>You are currently subscribed to ntfsd as: xxxxx@hotmail.com
>To unsubscribe send a blank email to xxxxx@lists.osr.com
Get 10mb of inbox space with MSN Hotmail Extra Storage
http://join.msn.com/?pgmarket=en-sg
Nick,
you wrote on Wednesday, October 1, 2003, 21:06:28:
NR> Poll.
NR> vincent gambit wrote:
> thanks for your reply.
> This is not so good.
> Because i can't keep opening all the drive letter because I do not know
> when users wil remove or attach new device to the system.Especially
> laptops.
What about IOCTL_MOUNTMGR_CHANGE_NOTIFY?
Ralf.
that’s what i did too.
vincent, i think there is no clean and simple solution to getting the drive
letter. you will have to pick one and implement.
Ampsi
----- Original Message -----
From: “Daniel Turcanu”
To: “Windows File Systems Devs Interest List”
Sent: Wednesday, October 01, 2003 01:18
Subject: [ntfsd] Re: get drive letter howto?
Hi,
I found a way around RtlVolumeDeviceToDosName because I haven’t
succeeded to make it work, and the algorithm is:
- I get the serial number from the VPB for the volume
- send this number to the user mode
- user mode parses all the visible volumes using GetLogicalDrives and
gets the serial number for each using GetVolumeInformation and return
the letter that matches.
- return the letter to kernel mode
I think this algorithm is general enough, it worked for me for all NTs.
Peter Viscarola wrote:
>“vincent gambit” wrote in message
>news:xxxxx@ntfsd…
>
>
>>Hi,
>>
>>HOw can I get the drive letter of my volume device object without using
>>RtlVolumeDeviceToDosName or IoVolumeDeviceToDosName?
>>
>>
>>
>
>PLEASE check the FAQ and the archives before posting questions.
>
>Please see the IFS FAQ question 26:
>
>http://www.osronline.com/article.cfm?id=17#Q26
>
>You can search the archives from the OSR Online home page.
>
>Peter
>OSR
>
>
>
>—
>You are currently subscribed to ntfsd as: xxxxx@ipdevel.ro
>To unsubscribe send a blank email to xxxxx@lists.osr.com
>
>
>
>
>
>
—
You are currently subscribed to ntfsd as: xxxxx@pmail.ntu.edu.sg
To unsubscribe send a blank email to xxxxx@lists.osr.com