首页 技术教程 实用代码 注册破解 正则表达式 网址导航 电子书籍

PB使用WININET的FTP方式自动更新

一些结构和API在非FTP方式文档中有了定义就不再说明。一、API声明function uLong InternetOpenA(string lpszAgent, ulong dwAccessType,string lpszProxyName,string lpszProxyBypass, ulong dwFlags) library "wininet.dll"function ulong InternetConnectA(ulong hInternet,string lpszServerName,ulong nServerPort,string lpszUsername,string lpszPassword,ulong dwService,ulong dwFlags,ulong dwContext) library "wininet.dll"function boolean InternetCloseHandle(ulong hInternet) library "wininet.dll"function boolean FtpSetCurrentDirectoryA(ulong h...
类别:程序开发 - PowerBuilder    查看:136    更新:2014-05-12

使用PB调用API自动更新(非FTP模式)

一、STRUCTURE定义 1、s_filetime global type s_filetime from structure long dwlowdatetime long dwhighdatetime end type 2、s_win32_find_data global type s_win32_find_data from structure long dwfileattributes s_filetime ftcreationtime s_filetime ftlastaccesstime s_filetime ftlastwritetime long nfilesizehigh long nfilesizelow long dwreserved0 long dwreserved1 character cfilename[255] character calternatefilename[14] end type 3、s_netresource global type s_netresource from structure long dwScope long dwType long dwDisplayType long dwUsage string lpLocalName string lpRemoteName str...
类别:程序开发 - PowerBuilder    查看:122    更新:2014-05-12