I have a network redirector that calls DefineDosDevice to create/remove a
link to a network drive, e.g. drive H: I can call this function in my NP
when adding/removing a drive and this works fine except when deleting the
link using DDD_REMOVE_DEFINITION and the NT user doesn’t have admin
privs. I got around this by having my NP send a message via named pipe to
a service running under LocalSystem and have it call DefineDosDevice to
delete the link and this works great except when used under Win2k Terminal
Server for remote users that don’t have admin privs.
For remote users Terminal Server stores the link for drive H: under
\Sessions\1 \DosDevices\H: The problem is my service is running under
LocalSystem and when I call DefineDosDevice it is using the Global
namespace and not the one I need for session #1. The function returns
success however it doesn’t delete the link. How can I get the service to
delete this link ? There must be some way to do this as the Microsoft
Redirector works fine in this scenario.
Thanks, – John