摘要: var NetSource: TNetResource; Error: LongInt; a: Cardinal;begin with NetSource do begin dwType := RESOURCETYPE_ANY; lpLocalName := 'Z:'; lpRemoteName := '\\192.168.2.4\arc'; lpProvider := ''; end;// case WNetAddConnection3(Handle, NetSource, '','', CONNECT_UPDA 阅读全文
posted @ 2013-05-12 17:06 Values 阅读(893) 评论(0) 推荐(0) 编辑
摘要: ----在Windows 环境下,应用程序使用Windows 网络函数(WNet)来实现网络功能而不用关心网络的供应商及具体实现,因为WNet 函数是独立于网络的。 ----Wnet 函数主要有:WnetAddConnection , WnetAddConnection2 , WnetAddConnection3 , WnetCancelConnection2 等。本文主要用 WnetAddConnection2,WnetCancelConnection2 函数。 ----WNetAddConnection2 在Windows.pas 中的函数原型如下: ----function WNetAd 阅读全文
posted @ 2013-05-12 17:01 Values 阅读(336) 评论(0) 推荐(0) 编辑