Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Drive letter from WdfDeviceCreateSymbolicLink not removed when driver unloads

49 views
Skip to first unread message

Kevin

unread,
Mar 27, 2008, 1:14:56 PM3/27/08
to
Hi,

I'm building something like the ramdisk example in the WinDDK. It uses
WdfDeviceCreateSymbolicLink to attach to a drive letter. The problem is
that when the driver unloads, the drive letter doesn't completely go
away. It remains in Windows Explorer as a disk with a red circle and a
white question mark in the middle. The "Map Network Drive" wizard shows
the drive letter as available. It completely disappears from explorer
after a reboot.

Any ideas? I want it to go away completely after the driver unloads.

Regards,
Kevin

Doron Holan [MSFT]

unread,
Mar 27, 2008, 2:28:11 PM3/27/08
to
are you communicating with the mount manager to get the driver letter and
let it know when it goes away? mount manager interfaces is how explorer
knows to remove a letter on unload

d

--
Please do not send e-mail directly to this alias. this alias is for
newsgroup purposes only.
This posting is provided "AS IS" with no warranties, and confers no rights.


"Kevin" <k...@hush.ai> wrote in message
news:%23IR8c5C...@TK2MSFTNGP05.phx.gbl...

Kevin

unread,
Mar 27, 2008, 6:52:47 PM3/27/08
to
Hi Doron,

Thanks for the reply.
I did some more digging and since I do have a user-mode app in the mix,
I can do it using
DefineDosDevice(DDD_RAW_TARGET_PATH, ...) to add and
DefineDosDevice(DDD_REMOVE_DEFINITION, ... ) to remove the drive.

Regards,
Kevin

Doron Holan [MSFT]

unread,
Mar 27, 2008, 6:58:59 PM3/27/08
to
if you work with mountmgr, all of this is taken care of for you and you do
not need an extra UM application. furthermore, mountmgr will take of this
for you across all active user sessions, your application will only effect
the session it is running in
d


--
Please do not send e-mail directly to this alias. this alias is for
newsgroup purposes only.
This posting is provided "AS IS" with no warranties, and confers no rights.


"Kevin" <k...@hush.ai> wrote in message

news:OUwOP2Fk...@TK2MSFTNGP02.phx.gbl...

Uwe Sieber

unread,
Mar 28, 2008, 4:09:24 AM3/28/08
to
Kevin wrote:
>
> Thanks for the reply.
> I did some more digging and since I do have a user-mode app in the mix,
> I can do it using
> DefineDosDevice(DDD_RAW_TARGET_PATH, ...) to add and
> DefineDosDevice(DDD_REMOVE_DEFINITION, ... ) to remove the drive.

Try SetVolumeMountPoint/DeleteVolumeMountPoint instead.


Uwe

0 new messages