www.pudn.com > WZ_UpdateModule_DLL.rar > UpdateInfo.h
#pragma once #include#include #include 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 ); };