Michael J. Leaver
2004-01-12 08:49:04 UTC
I'm banging my head against the wall trying to get WNetAddConnection2 to
work. At the moment, every time I call it I'm getting ERROR_BAD_NETPATH
(53) returned.
I'm not using a domain, and both computers are Windows XP SP1. I can
access the shares on the other computer no problem using Explorer or
even from the DOS prompt.
The remote name is passed in the normal format of
\\MACHINENAME\SHARENAME\ and I've tried both MACHINENAME\USERNAME and
USERNAME for the username. I've also tried passing nil for the username
and password. I've tried everything but it just refuses to work.
Any help appreciated.
work. At the moment, every time I call it I'm getting ERROR_BAD_NETPATH
(53) returned.
I'm not using a domain, and both computers are Windows XP SP1. I can
access the shares on the other computer no problem using Explorer or
even from the DOS prompt.
The remote name is passed in the normal format of
\\MACHINENAME\SHARENAME\ and I've tried both MACHINENAME\USERNAME and
USERNAME for the username. I've also tried passing nil for the username
and password. I've tried everything but it just refuses to work.
Any help appreciated.