XP: Drive Letter

Hello.

I wrote a virtual disk driver (for XP) - all is working fine, but I have a
problem: the letter for the virtual disk is assigned automatically
without asking my driver for the letter…

Now driver calls
IoRegisterDeviceInterface(MOUNTEV, pdo);
IoSetInterfaceState(TRUE)

I suppose to recv
IOCTL_MOUNTDEV_QUERY_SUGGESTED_LINK_NAME,
but recv only
IOCTL_MOUNTDEV_QUERY_STABLE_GUID and IOCTL_MOUNTDEV_LINK_CREATED

How to say to the system that I have specific letter to assign to my drive ?

When Driver doesn’t register Mountdev Iface (to send later to Moundev
IOCTL_MOUNTMGR_CREATE_POINT), the result is the same.

I appreciate any help…


WBR,
Dmitriy mailto:xxxxx@mail.ru


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

> I suppose to recv

IOCTL_MOUNTDEV_QUERY_SUGGESTED_LINK_NAME,
but recv only
IOCTL_MOUNTDEV_QUERY_STABLE_GUID and IOCTL_MOUNTDEV_LINK_CREATED

How to say to the system that I have specific letter to assign to my drive
?

When Driver doesn’t register Mountdev Iface (to send later to Moundev
IOCTL_MOUNTMGR_CREATE_POINT), the result is the same.

The problem is that it is probably already too late at the moment you
registered the interface.
My research showed that there is no (simple) way other then to manually
find/delete a link mount manager created for us and create correct one. The
good thing about that is that next time mount manager will use one that
fits.


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