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

📄 updateinfo.h

📁 奇迹世界更新程序源代码,其中包括一些文档
💻 H
字号:
#pragma once

#include <Windows.h>
#include <stdlib.h>
#include <string>
using namespace std;

#ifndef DLL_EXPORTS
#define WZ_DECLAREDLL			_declspec (dllexport)
#else
#define WZ_DECLAREDLL			_declspec (dllimport)
#endif


//UpdateInfo.ini 颇老阑 佬绢辑 历厘窍绰 备炼眉
//#define DEFAULT_UPDEATEINFO_FILE	"UpdateInfo.ini"
#define MAX_LIVE_PROCESS			10
#define MAX_SERVER_COUNT			10
#define DEFAULT_BUFFER_SIZE			128
#define	MAX_PATH_SIZE				128


class WZ_DECLAREDLL CUpdateInfo
{
public:
	//FTP
	char	m_szFTP_IP[DEFAULT_BUFFER_SIZE];
	int		m_nFTP_Port;
	char	m_szFTP_VersionFileName[DEFAULT_BUFFER_SIZE];
	char	m_szFTP_FileListFileName[DEFAULT_BUFFER_SIZE];

	//RTTA
	char	m_szRTTA_IP[DEFAULT_BUFFER_SIZE];
	int		m_nRTTA_Port;

	//UPDATE_DATA	
	int		m_nCntServer;											//诀单捞飘 辑滚 俺荐
	char	m_szServerName[MAX_SERVER_COUNT][DEFAULT_BUFFER_SIZE];	
	char	m_szServerVer[MAX_SERVER_COUNT][DEFAULT_BUFFER_SIZE];

	//PROCESS
	char	m_szProcess[MAX_LIVE_PROCESS][DEFAULT_BUFFER_SIZE];		

	//DOWNLOAD
	char	m_szDownloadPath[MAX_PATH_SIZE];

public:
	CUpdateInfo(void);
	~CUpdateInfo(void);

	BOOL LoadData(void);
	BOOL SaveVersionInfo( byte byVer1, byte byVer2, byte byVer3, int nServerNumber  );
	void GetModuleDirectory( char* szDirPath, int nSize );

private:
	void LoadFTPInfo( const char* pszFilePath );
	void LoadRTTAInfo( const char* pszFilePath );
	void LoadUpdateInfo( const char* pszFilePath );
	void LoadProcessInfo( const char* pszFilePath );
	void LoadDownloadPath( const char* pszFilePath );
};

⌨️ 快捷键说明

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