Two symbolic links for one device object

Hi All,

What would happen if two symbolic links are created to the same device object?
One in the kernel mode and one in the user mode.

It works just fine, however I am getting problems when trying to stop driver (STOP_PENDING)
and if I remove symbolic link in user mode then I can stop the driver , but I cannot restart it

The driver is nt legacy ram disk, which creates symb.link name for communication to user mode and in user mode I create a symb.link for the driver letter

Thanks,
Igor.

This works. Are you seeing that the UM created symlink is holding an extra ref to your devobj?

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of xxxxx@shaw.ca
Sent: Wednesday, November 10, 2010 11:23 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] Two symbolic links for one device object

Hi All,

What would happen if two symbolic links are created to the same device object?
One in the kernel mode and one in the user mode.

It works just fine, however I am getting problems when trying to stop driver (STOP_PENDING) and if I remove symbolic link in user mode then I can stop the driver , but I cannot restart it

The driver is nt legacy ram disk, which creates symb.link name for communication to user mode and in user mode I create a symb.link for the driver letter

Thanks,
Igor.


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer

Looks like it. The problem is only on windows 7 and vista