WNetAddConnection2的返回值

账号不带域名 1326

https://stackoverflow.com/questions/42205992/error-1326-when-wnetaddconnection2-is-run-by-a-local-system-account

If the username and password you're providing to WNetAddConnection2 belong to a domain account, the username should definitely include the domain name. If they belong to a local account on hostname2 you might need to specify hostname2username instead.

账户带了域名  2202 

https://stackoverflow.com/questions/45974002/how-to-resolve-this-error-error-bad-username-in-wnetaddconnection2

原文地址:https://www.cnblogs.com/chucklu/p/12369330.html