L
leadyli
Unregistered / Unconfirmed
GUEST, unregistred user!
我用的操作系統是Windows2003<br>語句如下<br>var<br> NetResource: TNetResource;<br> Res: DWord;<br>begin<br> FillChar(NetResource, SizeOf(NetResource), 0);<br> NetResource.dwType := RESOURCETYPE_ANY;<br> NetResource.lpLocalName := PChar('X:/');<br> NetResource.lpRemoteName := PChar('//alan');<br> NetResource.lpProvider := nil;<br> Res := WNetAddConnection2(NetResource,pchar('1'),pchar('administrator'),CONNECT_UPDATE_PROFILE);<br> if Res <> NO_ERROR then<br> ShowMessage('Login failed!')<br> else<br> ShowMessage('Login success!');<br>end;<br>請問為何登錄不了目標電腦?總是顯示'Login failed!'信息.