const.h
上传用户:maryhy001
上传日期:2007-05-02
资源大小:2317k
文件大小:4k
- #ifndef _SYSCONST_H
- #define _SYSCONST_H
- #define SYS_APPANEM _T("EMailer")
- #define SYS_VERSION_NO _T("2.0")
- //Time Format
- #define SYS_TIMEFORMAT "%04d-%02d-%02d %02d:%02d:%02d"
- //MessageBox string
- #define MSGBOX_ERROR_CAP _T("Error...")
- #define MSGBOX_WARNING_CAP _T("Warning...")
- #define MSGBOX_CONFIRM_CAP _T("Confirm...")
- #define MSGBOX_INFO_CAP _T("Information...")
- #define MSGBOX_ERROR(Tip) ::MessageBox(NULL, Tip, MSGBOX_ERROR_CAP, MB_OK|MB_ICONERROR)
- #define MSGBOX_WARNING(Tip) ::MessageBox(NULL, Tip, MSGBOX_WARNING_CAP, MB_OK|MB_ICONWARNING)
- #define MSGBOX_CONFIRM(Tip) ::MessageBox(NULL, Tip, MSGBOX_CONFIRM_CAP, MB_YESNO|MB_ICONQUESTION)
- #define MSGBOX_INFO(Tip) ::MessageBox(NULL, Tip, MSGBOX_INFO_CAP, MB_OK|MB_ICONINFORMATION)
- #define MSGSHOW_INFO(Tip) ::MessageBox(NULL, Tip, SYS_APPANEM, MB_OK)
- //Environments
- #define ENV_SYSROOTDIR _T("C:\trfAgent\2.0\")
- #define ENV_SYSDATAFLEDIR _T("Data Files")
- #define ENV_DEFAULT_RECVFLEDIR _T("Received Files")
- #define ENV_SYSFTPFLEDIR _T("Ftped Files")
- #define ENV_DEFAULT_ALARMSOUND _T("Default Alarm Sound")
- #define ENV_DEFAULT_TRFSERVER _T("192.168.1.1")
- #define ENV_DEFAULT_TRFPORT 5555
- #define ENV_DEFAULT_DELAYPORT 5556
- #define ENV_DEFAULT_DIRSVRPORT 5557
- //FTP default downloads directory
- #define ENV_DEFAULT_FTPDOWNTODIR _T("C:\Downloads")
- //Chating default log file name.
- #define ENV_DEFAULT_CHATINGLOGFILE _T("Chating.log")
- //Registry
- #define REG_SSYSSETTINGKEY _T("Software\trfAgent\2.0")
- #define REG_SSHLSNDTOFLEDIR _T("Software\trfAgent\ShlSendToFiles")
- #define REG_SSHLSNDTOFLECNT _T("Shell_SendToFile_Count")
- #define REG_BSYSINITIALIZED _T("Local_Initialized")
- #define REG_SRECVFLESDIR _T("Local_Save_RecvFile_Dir")
- #define REG_SALARMSOUND _T("Local_Alarm_Sound_File")
- #define REG_BAUTODELSNDEDFILE _T("Local_AutoDelSndedFile_FromList")
- #define REG_BAUTORUNWINSTART _T("Local_AutoRunWhenWinStart")
- #define REG_BSTARTTOHIDE _T("Local_StartToHide")
- #define REG_BMINITOHIDE _T("Local_MinToHide")
- #define REG_STRFSERVER _T("Net_Server")
- #define REG_NTRFTRANSPORT _T("Net_TransPort")
- #define REG_NTRFRELAYPORT _T("Net_DelayPort")
- #define REG_NTRFDIRSVRPORT _T("Net_DirSvrPort")
- #define REG_BAUTORECVSVRSFLES _T("Net_AutoRecvSvrsFiles")
- #define REG_BAUTOUPDATE _T("Net_AutoUpdate")
- //Chating registry keys' name.
- #define REG_NCHATUDPPORT _T("CHAT_UDPPORT")
- #define REG_NHEADBMPINDEX _T("CHAT_HEADBMPINDEX")
- #define REG_NMSGNOTIFYTYPE _T("CHAT_MSGNOTIFYTYPE")
- #define REG_STRCHATLOGFILE _T("CHAT_LOGFILENAME")
- //Chating group registry directory.
- #define REG_SCHATFRNDSKEY _T("Software\trfAgent\ChatFriends")
- //FTP registry directory
- #define REG_SFTPSEETINGKEY _T("Software\trfAgent\FtpSettings")
- #define REG_BFTPPASVMODE _T("FTP_PASVMode")
- #define REG_BFTPANONYMOUS _T("FTP_Anonymous")
- #define REG_SFTPHOSTNAME _T("FTP_HostName")
- #define REG_SFTPPORT _T("FTP_Port")
- #define REG_SFTPUSERNAME _T("FTP_UserName")
- #define REG_SFTPPASSWORD _T("FTP_Password")
- #define REG_SFTPDOWNTODIR _T("FTP_DownToDir")
- #define REG_SFTPDESCRIPTION _T("FTP_Description")
- //Autorun registry key
- #define REG_SSYSAUTORUN _T("Software\Microsoft\Windows\CurrentVersion\Run")
- //Message
- #define UWM_BASE WM_APP + 200
- #define UWM_SYSTRAY UWM_BASE + 1
- #define UWM_REFRESHUSRLST UWM_BASE + 2
- #define UWM_UPDATESTATUSBAR UWM_BASE + 3
- #define UWM_UPDATESYSLOGINF UWM_BASE + 4
- #define UWM_SHELLSNDTONOTIFY UWM_BASE + 5
- #define UWM_CHATINGMSG UWM_BASE + 10
- #define UWM_CHATSTARTLOGON UWM_BASE + 11
- #endif //_SYSCONST_H