NPCancelConnection problem with W2K Terminal Services

Hi All

I have an NFS (Network File System) client which runs on Windows 2000.

The problem is that remote users accessing the Terminal Server with the
W2K Terminal Services Client are unable to unmount/disconnect NFS
mounted drives. The user can mount the NFS drives and access the files
and directories. However, when they attempt to unmount the NFS drive,
the drive is unmounted in terms of NFS but is still visiable in Explorer.

In NPCancellConnection() in my network provider DLL I attempt to remove
the link in user space with the DefineDosDevice() with the
(DDD_REMOVE_DEFINITION | DDD_RAW_TARGET_PATH |
DDD_NO_BROADCAST_SYSTEM) flags set.
DefineDosDevice() fails with error 5 (access_denied).

The problem I’m about to describe does not occur on Win2000Pro
or Win2000Server (console session), only on Windows
2000 Terminal Services sessions.

Does anyone know the problem_solving?

Thanks for any help…

Nikolay Naumov
E-mail: xxxxx@mikron.ru
Mikron Corporation, http://www.mikron.ru
Moscow, Russia


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

> In NPCancellConnection() in my network provider DLL I attempt to remove

the link in user space with the DefineDosDevice() with the

When I wrote a redirector, I remember getting rid of the idea of DefineDosDevice in the NP DLL.
I used IoCreateSymbolicLink in the redirector itself instead. This worked fine.

Max


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