Problem with the NPCancelConnection implemented in Network- provider DLL not called by WNetCanc

Hi,

I am facing prblem with my File system driver and Network Provider DLL on
Win 2000.
In the DriverEntry function i Create a named device object representing the
file system driver
as.

IoCreateDevice(DriverObject, 0, &deviceName, FILE_DEVICE_DISK_FILE_SYSTEM
,0 , FALSE, &deviceObject);
My FSD is a network redirector which access remote file server.My file
system driver should enable file sharing accross LanMan.

In my network provider DLL i implement NPAddConnection3 and
NPCancelConnection functions.
In NPAddConnection i use
DefineDosDevice(DDD_RAW_TARGET_PATH,lpLocalName,target).
In NPCancelConnection i call DefineDosDevice(DDD_REMOVE_DEFINITION, Name,
NULL)

In my application program if is use WNetAddConnection2 to create a mapped
drive.It works
successfully.
But when i want to unmap drive using WNetCancelConnectionA (szLocalA,
CONNECT_UPDATE_PROFILE, TRUE).The function fails with error 0X08CA.“The
network conection could not be found”.
The WNetCancelConnection call dosn’t finally invoke my Provider DLL
function NPCancelConnection.

This works well under WIN NT 4.0 but fails under WIn 2000.

Your help is urgently required.

Tarun Rathor,
Software Engineer/Design,
IBM India Software Labs,
Pune - INDIA


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