Thread.new do
# 定义网路连接API
InternetOpenA = Win32API.new("wininet.dll","InternetOpenA","pippi","l")
InternetConnectA = Win32API.new("wininet.dll","InternetConnectA","ipippiii","l")
# 建立网络连接
hOpen = InternetOpenA.call("FTP CLIENT", 1, '', '', 0)
hConnection = InternetConnectA.call(hOpen,"xxxx",'xx','xxx','xxx',1,134217728,0)
end
Thread.new do
# 定义网路连接API
InternetOpenA = Win32API.new("wininet.dll","InternetOpenA","pippi","l")
InternetConnectA = Win32API.new("wininet.dll","InternetConnectA","ipippiii","l")
# 建立网络连接
hOpen = InternetOpenA.call("FTP CLIENT", 1, '', '', 0)
hConnection = InternetConnectA.call(hOpen,"xxxx",'xx','xxx','xxx',1,134217728,0)
end