WNetAddConnection2A is essentially a WinAPI function that allows you to add/mount Windows share connections (Samba shares if you will)… it lets you specify a comp name, username and password. Now the problem is, once in a while, you may encounter 1219 error. This translates to multiple connections from the same comp to the remote comp – which is apparently bad in Windows. Until today, I used to restart both comps to make this go away. Dont do that. Goto command line, do a net use and see who/what is using the connections. Then do a net use * /delete to remove them all… google more to find out how to remove only what you want or better still, experiment.