代码改变世界

NetUseAdd 函数得1219错误

2012-12-29 17:38  雪中风筝  阅读(1063)  评论(0编辑  收藏  举报

在同一台电脑上使用不同得凭据连接到同一共享资源的时候,遇到了1219的错误:

  官方的解释是:

  Multiple connections to a server or shared resource by the same user, using more than one user name, are not allowed. Disconnect all previous connections to the server or shared resource and try again.

=====================================================

 

  查到下面得原因

  

  Windows does not allow multiple connections with different user credentials, created from the same computer to the same network location. For example your computer is named \\MyComputer and your server is named \\MyServer. You can establish a share from \\MyComputer to \\MyServer by using your own credentials or by specifying the credentials of an other user. Once this connection is established you can create a second share by using the same user credentials (account) but you can not create a new share by using a different user account. 


When this problem occurs error code 1219 will be found in the log file. Notice that this is a Windows limitation and Remote Profile Cleaner only displays the error code it receives from Windows in the log file.