M
masks
Unregistered / Unconfirmed
GUEST, unregistred user!
在window2000下用这个函数共享一个网络资源,建立逻辑驱动器没问题<br>可是win98映射win2000报拒绝访问代码如下<br><br> ShareName:=edit1.Text;<br> username:=edit2.Text;<br> password:=edit3.text;<br><br> with NRW do<br> begin<br> dwType:= RESOURCETYPE_ANY;<br> lpLocalName:='Z:';<br> lpRemoteName:=PChar(ShareName);<br> lpProvider:='';<br> end;<br> I:=WNetAddConnection2(NRW, PChar(Password), PChar(UserName), 0);<br> //I:=WNetAddConnection(PChar(ShareName),PChar(password),Pchar('Z:'));<br> showmessage(syserrormessage(I));<br>为什么????