DECLARE INTEGER WNetAddConnection IN Win32API; >> STRING @lpszRemoteName, STRING @lpszPassword, STRING @lpszLocalName >>DECLARE INTEGER WNetCancelConnection IN Win32API; >> STRING @lpszName, INTEGER fForce >>* Map a drive >>* lcserver is the server name >>* lcdrive is the drive specifier. >>* The below uses the "remembered" password name >>* If the mapping was successful lnresult will equal 0 >>lnresult = WNetAddConnection(@lcserver, 0, @lcdrive) >>* Below uses provided password. >>lnresult = WNetAddConnection(@lcserver, @lcpassword, @lcdrive) >>* Unmap/Disconnect >>lnresult = WNetCancelConnection(lcdrive, 0) && 0 if success.>