How to get a device that a symbolic link points to

Hi,

perhaps somebody could give me a hint: I have a drive name (“a:”) in kernel
space, and I want to get the device pointer or the device name that it
points to (“/device/floppy0”). But how?

Thanks in advance
Frank


You are currently subscribed to ntfsd as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com

You should query the symbolink link.
Look into W2K DDK to some routines,
namely ZwOpenSymbolicLinkObject,
ZwQuerySymbolicLinkObject and ZwClose.

Paul

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Friemel, Frank
Sent: Tuesday, November 13, 2001 2:26 PM
To: File Systems Developers
Subject: [ntfsd] How to get a device that a symbolic link points to

Hi,

perhaps somebody could give me a hint: I have a drive name (“a:”) in
kernel space, and I want to get the device pointer or the device name
that it points to (“/device/floppy0”). But how?

Thanks in advance
Frank

You are currently subscribed to ntfsd as: xxxxx@compelson.com
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntfsd as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com

NachrichtUse IoGetDeviceObjectPointer to get a pointer to the device. Use ZwOpenSymbolicLinkObject/ZwQuerySymbolicLinkObject to find out where a symbolic link points.

Alexey Logachyov
xxxxx@vba.com.by
VirusBlokAda ltd.
http://www.vba.com.by

----- Original Message -----
From: Friemel, Frank
To: File Systems Developers
Sent: Tuesday, November 13, 2001 3:25 PM
Subject: [ntfsd] How to get a device that a symbolic link points to

Hi,

perhaps somebody could give me a hint: I have a drive name (“a:”) in kernel space, and I want to get the device pointer or the device name that it points to (“/device/floppy0”). But how?

Thanks in advance
Frank

You are currently subscribed to ntfsd as: xxxxx@vba.com.by
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntfsd as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com

NachrichtZwQuerySymbolicLinkObject can help.

Max

----- Original Message -----
From: Friemel, Frank
To: File Systems Developers
Sent: Tuesday, November 13, 2001 4:25 PM
Subject: [ntfsd] How to get a device that a symbolic link points to

Hi,

perhaps somebody could give me a hint: I have a drive name (“a:”) in kernel space, and I want to get the device pointer or the device name that it points to (“/device/floppy0”). But how?

Thanks in advance
Frank

You are currently subscribed to ntfsd as: xxxxx@storagecraft.com
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntfsd as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com