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

📄 stdafx.h

📁 这个基于嵌入式平台SMART PHONE电子邮件收发管理系统(MAIL MAN是一个电子邮件客户端软件。它以很小的体积
💻 H
字号:
// stdafx.h : include file for standard system include files,
//  or project specific include files that are used frequently, but
//      are changed infrequently
//

#if !defined(AFX_STDAFX_H__A9DB83DB_A9FD_11D0_BFD1_444553540000__INCLUDED_)
#define AFX_STDAFX_H__A9DB83DB_A9FD_11D0_BFD1_444553540000__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#define WIN32_LEAN_AND_MEAN		// Exclude rarely-used stuff from Windows headers

// Windows Header Files:
#include <windows.h>
#include <windowsx.h>

// Local Header Files

// TODO: reference additional headers your program requires here
/// include stdafx.h ///
/**********************************************************************

THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
PARTICULAR PURPOSE.

This is sample code and is freely distributable.

**********************************************************************/
/////////////////////////// Rapier only samples ///////////////////////
#if _WIN32_WCE < 212//non-Rapier devices
#error 'This sample works on Rapier devices only'
#endif
#include <aygshell.h>
#include <tpcshell.h>
#include <Winsock2.h>
#include <vibrate.h>
//Menu Bar Height
#define MENU_HEIGHT 0

////////////////////////// SHGetMenu Macro's
#if _WIN32_WCE > 211 //Rapier devices

//#define SHCMBM_SETSUBMENU   (WM_USER + 400)
//#define SHCMBM_GETSUBMENU   (WM_USER + 401) // lParam == ID
//#define SHCMBM_GETMENU      (WM_USER + 402) // get the owning hmenu (as specified in the load resource)


//#define ADDCONTACT  1
//#define DEBUG_NOGPRS		1
int const ADDRESS_LENTH  = 30;
int const MAIL_SUBJECTLENTH = 100;
int const MAIL_CONTENTLENTH	= (1024*1024);
int const PASSWORD_LENTH = 36;
int const PERSON_NAME_LENTH = 50;
int const SEVERNAME_LENTH = 40;
int const MAX_USER_NUMBER = 8;
int const MAX_PATH_LENTH = 120;
int const MAILEIDTADDRESSLENGH	= 120;
//extern globle declaration
extern HINSTANCE g_hInst;
extern int g_messageid;
extern TCHAR inbox[10];
extern TCHAR trashbox[10];
extern TCHAR uidlbox[10];

//error marcos
//ui error
#define DESNOT_EMPTY		100
//gprs errors
#define GPRS_CREAEFAIL		10000
//smtp errors
#define APP_ERROR		0	
#define SERVER_NO_RESPONSE	1
#define CAN_NOT_FIND_SERVER	2 
#define SMTP_LOGIN_ERROR	3
#define DES_NOT_RIGHT		4
#define TRANS_DATA_ERROR	5
//pop3 errors;
#define CAN_NOT_CONNECT_POPSERVER	10
#define POP_LOGIN_ERROR				11
#define RECEI_FAIL					12
#define CONNECT_INTERRUPT			13
#define USER_QUIT					14
#define RECIEVE_SUCEES				15	
#define DISCONNECT_FAIL				16
#define LIST_MAIL_FAIL				17
#define LIST_UID_FAIL				18


#define MAX_MAIL_NUMBER				200
#define MAX_CONTACT_NUMBER			1000
#define SHGetMenu(hWndMB)  (HMENU)SendMessage((hWndMB), SHCMBM_GETMENU, (WPARAM)0, (LPARAM)0);
#define SHGetSubMenu(hWndMB,ID_MENU) (HMENU)SendMessage((hWndMB), SHCMBM_GETSUBMENU, (WPARAM)0, (LPARAM)ID_MENU);
#define SHSetSubMenu(hWndMB,ID_MENU) (HMENU)SendMessage((hWndMB), SHCMBM_SETSUBMENU, (WPARAM)0, (LPARAM)ID_MENU);
#define ARRAYSIZE(a)   (sizeof(a)/sizeof(*a))
//Alternate definition
#define SHMenuBar_GetMenu(hWndMB,ID_MENU) (HMENU)SendMessage((hWndMB), SHCMBM_GETSUBMENU, (WPARAM)0, (LPARAM)ID_MENU);

#else //non-Rapier devices

#define SHGetMenu(hWndCB) (HMENU)CommandBar_GetMenu(hWndCB, 0)
#define SHGetSubMenu(hWndCB,ID_MENU) (HMENU)GetSubMenu((HMENU)CommandBar_GetMenu(hWndCB, 0), ID_MENU)
#define SHSetSubMenu(hWndMB,ID_MENU)

#endif
/// end include stdafx.h ///

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.


#endif // !defined(AFX_STDAFX_H__A9DB83DB_A9FD_11D0_BFD1_444553540000__INCLUDED_)

⌨️ 快捷键说明

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