首页
社区
课程
招聘
麻烦一下,不知那位大哥有wininet.dll中各个函数的说明教程!
发表于: 2005-3-5 11:21 4602

麻烦一下,不知那位大哥有wininet.dll中各个函数的说明教程!

2005-3-5 11:21
4602
我在网上找了好久,也没有关于这方面的完整文章,恳请各位大哥谁能提供一下,最好是中文的,我的英语实在是太差了! 先谢谢了!

[培训]《安卓高级研修班(网课)》月薪三万计划,掌握调试、分析还原ollvm、vmp的方法,定制art虚拟机自动化脱壳的方法

收藏
免费 0
支持
分享
最新回复 (3)
雪    币: 200
活跃值: (10)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
2
我破解的一个软件是要向服务器上发一些信息的,反汇编后发现这个程序用的是wininet.dll中的网络函数。现在我想编一个程序模仿源软件向网络服务器上发信息,希望大家能帮帮我!谢谢了!
2005-3-5 11:34
0
雪    币: 1
能力值: (RANK:10 )
在线值:
发帖
回帖
粉丝
3
Accessing the FTP Protocol
Wininet.dll and the corresponding Wininet.lib do not include the FTP APIs. To develop FTP applications on a version of the Windows CE OS that does not export FTP APIs from the Wininet.dll, you can use Winsock. FTP APIs are included in the emulation library, Wininetm.lib, and will work in the emulation environment. You can use the FTP APIs with Windows CE version 2.12 which is included in Wininet.dll and Wininet.lib.

The following illustration shows the FTP functions dependent on the FTP session HINTERNET returned by InternetConnect. The shaded boxes represent functions that return HINTERNETs and the plain boxes represent functions that use the HINTERNET created by the function on which they depend.

The FtpCreateDirectory, FtpDeleteFile, FtpGetCurrentDirectory, FtpGetFile, FtpPutFile, FtpRemoveDirectory, FtpRenameFile, and FtpSetCurrentDirectory functions use the HINTERNET handle created by InternetConnect.

The following illustration shows the two FTP functions that return HINTERNET handles and the functions dependent on the HINTERNET handles created by them. The shaded boxes represent functions that return HINTERNET handles, while the plain boxes represent functions that use the HINTERNET handle created by the function on which they depend.

InternetFindNextFile is dependent on the HINTERNET handle created by FtpFindFirstFile, and InternetReadFile uses the HINTERNET handle created by FtpOpenFile.

Use WinInet to perform the following tasks on an FTP server:

Navigating directories
Enumerating, creating, removing, and renaming directories
Renaming, uploading, downloading, and deleting files
To access an FTP server with WinInet

Call InternetOpen to initialize an Internet handle.
InternetOpen creates the root HINTERNET handle that is used to establish the FTP session. The HINTERNET Internet handle is used by all subsequent functions.

Call InternetConnect to create an FTP session.
When calling InternetConnect specify INTERNET_DEFAULT_FTP_PORT for the nServerPort parameter and INTERNET_SERVICE_FTP for the dwService parameter.

This function uses the handle returned by InternetOpen to create a specific FTP session. InternetConnect initializes an FTP session for the specified site, using the arguments passed to it and creates HINTERNET that is a branch off the root handle. In the case of an FTP session, InternetConnect attempts to establish a connection to the specified site.

Call FtpGetFile or FtpFindFirstFile.
InternetConnect returns a handle that subsequent functions can use, such as FtpGetFile or FtpFindFirstFile.

Use the InternetFindNextFile function with FtpFindFirstFile to find the next file in a file search, using the search parameters and HINTERNET handle from FtpFindFirstFile.

To complete a file search, continue to call InternetFindNextFile using the HINTERNET handle returned by FtpFindFirstFile until function fails with the extended error message ERROR_NO_MORE_FILES. To get the extended error data, call the GetLastError function.

Call InternetCloseHandle to close the FTP session created by calling InternetConnect.
Call InternetCloseHandle to close the handle created by calling InternetOpen.
Note   Applications must specify a directory relative to the current directory or include the full directory path.

Built on Wednesday, October 04, 2000
--------------------------------------------------------------------------------
Send feedback to MSDN.Look here for MSDN Online resources.
2005-3-7 11:17
0
雪    币: 1
能力值: (RANK:10 )
在线值:
发帖
回帖
粉丝
4
查MSDN最方便
2005-3-7 11:18
0
游客
登录 | 注册 方可回帖
返回
//