WNetUseConnection Fails in Windows NT
Posted on 2004-09-01
I had written a small application to copy files from remote machine to the local . I did by mapping the remote machine to the local machine first and normal file copying . To map the the remote machine to the local drive I used WNetUseConnection . Application worked fine . Later I found that the app fails due to WNetUseConnection in Windows 2000 Professional . Came to know from msdn that it is a bug in windows 2000 Professional . After installing the latest service pack it worked well . The error message I used to get before installing the service pack is ERROR_ALREADY_ASSIGNED .
Now it fails in Windows NT 4.0 with latest service pack 6.0 installed . Here the error message is ERROR_BAD_NETPATH (System error message 53) . I didnt find any info relating this problem in website or msdn unlike windows 2000 problem.
But the same application works well in all other windows version (98,XP,2000 with service pack 4.0)
Can anyone please help me to fix this problem ?