define.h
上传用户:weimei12
上传日期:2022-08-11
资源大小:185k
文件大小:2k
- #pragma once
- #define INOUT
- #define SETTING_FILE_NAME _T("\MailSet.ini")
- #define SETTING_MAX_LEN 128
- #define WM_ICON_NOTIFY (WM_USER + 510)//used for the system tray
- #define WM_DEL_FILE (WM_USER + 512)//delete the accessory
- #define WM_LIST_SELECTED (WM_USER + 513)//one line in the list is selected
- #define SMTP_PORT 25 // Standard port for SMTP
- #define POP3_PORT 110 // Standard port for POP3
- typedef struct MAILPOS
- {
- int nBlockIndex;
- }MAILPOS, *PMAILPOS;
- //////////////////////////////////////////////////////////////////////////
- //used in sending mail
- #define RESPONSE_BUFFER_SIZE 1024 //Receive buffer size
- #define MAIL_CHARS_PER_LINE 76 //chars limit per line
- #define ORIGIN_SMTP 1 //SMTP
- #define EXTEND_SMTP 2 //extended SMTP
- //////////////////////////////////////////////////////////////////////////
- //used in receiving mail
- #define CONNECTION_CHECK 0
- #define USER_CHECK 1
- #define PASSWORD_CHECK 2
- #define QUIT_CHECK 3
- #define DELETE_CHECK 4
- #define RSET_CHECK 5
- #define STAT_CHECK 6
- #define NOOP_CHECK 7
- #define LIST_CHECK 8
- #define RETR_CHECK 9
- #define TOP_CHECK 10
- #define SEND_CMD_SIZE 512
- #define RECV_BUFFER_SIZE 8192
- #define SLEEP_INTERVAL 2000//ms
- #define MAIL_FILE_NAME _T("\mailfile.tmp")
- #define MAIL_CONFIG_FILE _T("\SimpleMail.cfg")
- #define MAX_MAIL_SIZE_LIMIT 1024 * 1024
- #define MAIL_TOP_TO_READ 1024
- #define RECEIVE_MAILS 1
- #define INITIAL_PROGRAM 2
- #define START_RECEIVING 5
- #define CONNECT_SERVER_SUCCESS 20
- #define RECEIVING_MAILS 50
- #define UPDATING_MAILS 80
- #define RECEIVED_SUCCESS 100
- #define RECEIVE_ERRORS -1
- //////////////////////////////////////////////////////////////////////////
- //splitter view
- #define VIEW_SPLITTER 1
- #define VIEW_LISTCTRL 2
- #define VIEW_EDIT 3
- //////////////////////////////////////////////////////////////////////////
- //the value that can be returned
- #define HRESULT_BASE 0x80000000
- #define HRESULT_SUCCESS HRESULT_BASE + 1
- #define HRESULT_FAIL HRESULT_BASE + 2