Re: How to get drive letter from device object/- device name in kernel mode

Hi,
But I need to get the drive letter before mounting the volume.
“ZwOpenSymbolicLinkObject” needs the object to be mounted before the
operation. Is there anyway for that…
Regards,

Sreejith S R
IBM Global Services Pvt. Ltd.
Golden Enclave, Airport Road,
Bangalore -17

Phone : 91-80-526 2355/7117 ext: 3024
Fax : 91-80-527 7374

Prasad Dabak on 04/11/2000 12:11:36 PM

Please respond to “File Systems Developers”

To: “File Systems Developers”
cc: (bcc: S R Sreejith/India/IBM)
Subject: [ntfsd] Re: How to get drive letter from device object/ device
name in kernel mode

Hello,

QueryDosDevice is a user mode WIN32 API function and
is not callable from kernel mode.

One needs to query the symbolic link objects ??\A:,
??\C:, ??\D: and so on using the Native APIs
ZwOpenSymbolicLinkObject and
ZwQuerySymbolicLinkObject.

-Prasad

— Peter van Sebille
wrote:
> Hi,
>
> Given a dos drive letter, QueryDosDevice returns the
> NT device
> name. Call it for the 26 possible dos drives and
> search for a match.
>
> cheers,
> Peter
>
> ssreejit@in.ibm.com wrote:
> >
> > Hi folks,
> > Could anybody tell me how to get the drive
> letter from device object
> > or device name from the kernel mode.
> > Regards,
> > Sreejith S R
> > IBM Global Services Pvt. Ltd.
> > Golden Enclave, Airport Road,
> > Bangalore -17
> >
> > Phone : 91-80-526 2355/7117 ext: 3024
> > Fax : 91-80-527 7374
> >
> > —
> > You are currently subscribed to ntfsd as:
> xxxxx@yipton.demon.co.uk
> > To unsubscribe send a blank email to
> $subst(‘Email.Unsub’)
>
> —
> You are currently subscribed to ntfsd as:
> xxxxx@yahoo.com
> To unsubscribe send a blank email to
> $subst(‘Email.Unsub’)
>
>

=====
Prasad S. Dabak
Director of Engineering, Windows NT/2000 Division
Cybermedia Software Private Limited
http://www.cybermedia.co.in
Co-author of the book “Undocumented Windows NT”
ISBN 0764545698

__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com


You are currently subscribed to ntfsd as: ssreejit@in.ibm.com
To unsubscribe send a blank email to $subst(‘Email.Unsub’)