⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 rainftp_typedefine.h

📁 墨香最新私服
💻 H
字号:
#pragma once

#include "./ZipArchive/ZipArchive.h"

/////////////////////////////////////////////////////
//
//	COMPLETION_ERROR.
//
/////////////////////////////////////////////////////

enum COMPLETION_ERROR
	{
		CE_INITIALIZED					= 0,			//	No Result Occur.

		CE_SUCCEED						,				//	ok. request completed.
		CE_EXCUTE_PENDING				,				//	Request is Pending.
		CE_DOWNLOAD_PROGRESS			,

		CE_ERROR						,				//	Error, but Session is valid.

		CE_SHUTDOWN_WININET				,				//	Shutdown by wininet internal.
		CE_SHUTDOWN_TIMEOUT				,				//	Shutdown by Timeout.
		CE_SHUTDOWN_USER				,				//	Shutdown by User.
		CE_SHUTDOWN_LOCAL
	};

/////////////////////////////////////////////////////
//
//	Internet Param.
//
/////////////////////////////////////////////////////

struct InternetParam
{
	DWORD		dwAccessType;
    char*		pszProxyName;
    char*		pszProxyBypass;
};


/////////////////////////////////////////////////////
//
//	Connect_data.
//
/////////////////////////////////////////////////////

struct Connect_data
{
	PVOID				pvExcuteContext;
	COMPLETION_ERROR	CompletionError;

	char				szServerName	[ MAX_PATH];
	WORD				wServerPort;

	char				szUserName		[ MAX_PATH];
	char				szUserPassword	[ MAX_PATH];

	BOOL				bPassiveMode;
	DWORD				dwTimeOut;
};


/////////////////////////////////////////////////////
//
//	Directory_data.
//
/////////////////////////////////////////////////////

struct Directory_data
{
	PVOID				pvExcuteContext;
	COMPLETION_ERROR	CompletionError;

	//	OUT
	char				szCurrentDirectory[ MAX_PATH];
	//	dwLength value is ignored in SetCurrentDirectory.
	DWORD				dwLength;
};


/////////////////////////////////////////////////////
//
//	List_data.
//
/////////////////////////////////////////////////////

struct List_data
{
	PVOID				pvExcuteContext;
	COMPLETION_ERROR	CompletionError;

	char*				pszSearchFile;

	WIN32_FIND_DATA*	pFile;
	DWORD				dwFileMax;

	//	OUT
	DWORD				dwFileNum;
};


/////////////////////////////////////////////////////
//
//	File_data.
//
/////////////////////////////////////////////////////

struct File_data
{
	PVOID				pvExcuteContext;
	COMPLETION_ERROR	CompletionError;
	
	char				szRemoteFile	[ MAX_PATH];
	char				szLocalFile		[ MAX_PATH];
	BOOL				bResume;

	//	OUT
	DWORD				dwTransferBytes;
};

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -