StdAfx.h
上传用户:zhuzhu0204
上传日期:2020-07-13
资源大小:13165k
文件大小:3k
- // 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__420FE3C9_FFC8_4379_902A_CAB84CF93914__INCLUDED_)
- #define AFX_STDAFX_H__420FE3C9_FFC8_4379_902A_CAB84CF93914__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- #define VC_EXTRALEAN // Exclude rarely-used stuff from Windows headers
- #include <afxwin.h> // MFC core and standard components
- #include <afxext.h> // MFC extensions
- #include <afxdisp.h> // MFC Automation classes
- #include <afxdtctl.h> // MFC support for Internet Explorer 4 Common Controls
- #ifndef _AFX_NO_AFXCMN_SUPPORT
- #include <afxcmn.h> // MFC support for Windows Common Controls
- #endif // _AFX_NO_AFXCMN_SUPPORT
- #include "AtlBase.h"
- #include <winsock2.h>
- #include "iphlpapi.h"
- #pragma comment(lib,"iphlpapi.lib")
- #pragma comment(lib, "Ws2_32.lib")
- #pragma comment(lib, "Rpcrt4.lib")
- #include "../common/PMacRes.h"
- #include "../common/TypeStruct.h"
- #include "../common/iocommon.h"
- #include "Provider.h"
- #include "PRuleFile.h"
- #include "PIOControl.h"
- #include "PassThruUserIo.h"
- extern FILE *g_pLogFile; // 日志文件
- extern CPRuleFile g_RuleFile; // 规则文件
- extern CPIOControl *g_pIoControl; // 管理DLL共享数据
- extern HWND g_hMainWnd; // 用于保存主对话框句柄
- extern CString strCurrentPath; // 保存防火墙当前路径
- // Skin++ 头文件
- #include "SkinPlusPlus.h"
- #pragma comment(lib,"SkinPlusPlusDLL.lib")
- #define QUERY_DLG_DESTROY WM_USER + 202 // 当询问对话框销毁时向主对话框发送
- #define UPDATE_ACCESS_CTRL_LIST WM_USER + 203 // 询问对话框添加应用程过滤规则时向主对话框发送
- #define UPDATE_PACKET_MONITOR_LIST WM_USER + 204 // 添加或修改核心层过滤规则时向主对话框发送
- #define UPDATE_WEBSITE_LIST WM_USER + 205 // 添加或修改网站黑名单时向主对话框发送
- #define UPDATE_IPRULE_LIST WM_USER + 206 // 修改IP规则时向主对话框发送
- #define WM_TO_TRAY WM_USER + 207 // 最小化到托盘
- // 定义一个用于保存文件版本信息的结构体
- typedef struct _FileVersion
- {
- CString CompanyName; // 公司名称
- CString LegalCopyright; // 法律版权
- CString FileDescription; // 文件描述
- CString ProductVersion; // 产品版本
- }FileVersion, *PFileVersion;
- void SaveLogFile(char *szContent); // 保存日志文件
- CString GetFilePath(TCHAR *sFilename); // 获得程序的路径
- CString GetFileName(TCHAR *sFilename); // 获得程序的名称
- BOOL GetVersionFromPath(LPTSTR szPath, PFileVersion pFileVersion); //通过程序路径获得程序的版本信息
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_STDAFX_H__420FE3C9_FFC8_4379_902A_CAB84CF93914__INCLUDED_)