資源簡介
可以實現過濾規則的安裝 卸載 加載 刪除等 實現了過濾功能

代碼片段和文件信息
//?FirewallApp.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“FirewallApp.h“
#include?“MainFrm.h“
#include?“FirewallAppDoc.h“
#include?“FirewallAppView.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CFirewallAppApp
BEGIN_MESSAGE_MAP(CFirewallAppApp?CWinApp)
//{{AFX_MSG_MAP(CFirewallAppApp)
ON_COMMAND(ID_APP_ABOUT?OnAppAbout)
//?NOTE?-?the?ClassWizard?will?add?and?remove?mapping?macros?here.
//????DO?NOT?EDIT?what?you?see?in?these?blocks?of?generated?code!
//}}AFX_MSG_MAP
//?Standard?file?based?document?commands
ON_COMMAND(ID_FILE_NEW?CWinApp::OnFileNew)
ON_COMMAND(ID_FILE_OPEN?CWinApp::OnFileOpen)
//?Standard?print?setup?command
ON_COMMAND(ID_FILE_PRINT_SETUP?CWinApp::OnFilePrintSetup)
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
//?CFirewallAppApp?construction
CFirewallAppApp::CFirewallAppApp()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}
/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CFirewallAppApp?object
CFirewallAppApp?theApp;
/////////////////////////////////////////////////////////////////////////////
//?CFirewallAppApp?initialization
BOOL?CFirewallAppApp::InitInstance()
{
AfxEnableControlContainer();
//?Standard?initialization
//?If?you?are?not?using?these?features?and?wish?to?reduce?the?size
//??of?your?final?executable?you?should?remove?from?the?following
//??the?specific?initialization?routines?you?do?not?need.
#ifdef?_AFXDLL
Enable3dControls(); //?Call?this?when?using?MFC?in?a?shared?DLL
#else
Enable3dControlsStatic(); //?Call?this?when?linking?to?MFC?statically
#endif
//?Change?the?registry?key?under?which?our?settings?are?stored.
//?TODO:?You?should?modify?this?string?to?be?something?appropriate
//?such?as?the?name?of?your?company?or?organization.
SetRegistryKey(_T(“FirewallApp“));
LoadStdProfileSettings();??//?Load?standard?INI?file?options?(including?MRU)
//?Register?the?application‘s?document?templates.??Document?templates
//??serve?as?the?connection?between?documents?frame?windows?and?views.
CSingleDocTemplate*?pDocTemplate;
pDocTemplate?=?new?CSingleDocTemplate(
IDR_MAINframe
RUNTIME_CLASS(CFirewallAppDoc)
RUNTIME_CLASS(CMainframe)???????//?main?SDI?frame?window
RUNTIME_CLASS(CFirewallAppView));
AddDocTemplate(pDocTemplate);
//?Parse?command?line?for?standard?shell?commands?DDE?file?open
CCommandLineInfo?cmdInfo;
ParseCommandLine(cmdInfo);
//?Dispatch?commands?specified?on?the?command?line
if?(!ProcessShellCommand(cmdInfo))
return?FALSE;
//?The?one?and?only?window?has?been?initialized?so?show?and?update?it.
m_pMainWnd->ShowWindow(SW_SH
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2012-09-10?11:43??Firewall\
?????目錄???????????0??2012-09-10?20:45??Firewall\Debug\
?????文件?????3220480??2012-10-20?15:25??Firewall\Debug\FirewallApp.bsc
?????文件??????155707??2012-10-19?18:53??Firewall\Debug\FirewallApp.exe
?????文件??????388672??2012-10-19?18:53??Firewall\Debug\FirewallApp.ilk
?????文件???????24989??2012-09-10?20:48??Firewall\Debug\FirewallApp.obj
?????文件?????6876124??2012-09-10?20:48??Firewall\Debug\FirewallApp.pch
?????文件??????484352??2012-10-19?18:53??Firewall\Debug\FirewallApp.pdb
?????文件???????16480??2012-10-19?18:53??Firewall\Debug\FirewallApp.res
?????文件???????????0??2012-10-20?15:25??Firewall\Debug\FirewallApp.sbr
?????文件???????17610??2012-09-10?20:48??Firewall\Debug\FirewallAppDoc.obj
?????文件???????????0??2012-10-20?15:25??Firewall\Debug\FirewallAppDoc.sbr
?????文件???????29371??2012-09-10?20:48??Firewall\Debug\FirewallAppView.obj
?????文件???????????0??2012-10-20?15:25??Firewall\Debug\FirewallAppView.sbr
?????文件???????50706??2012-09-10?20:48??Firewall\Debug\MainFrm.obj
?????文件???????????0??2012-10-20?15:25??Firewall\Debug\MainFrm.sbr
?????文件???????19054??2012-09-10?20:48??Firewall\Debug\RuleDlg.obj
?????文件???????????0??2012-10-20?15:25??Firewall\Debug\RuleDlg.sbr
?????文件????????4747??2012-09-10?20:48??Firewall\Debug\sockUtil.obj
?????文件???????????0??2012-10-20?15:25??Firewall\Debug\sockUtil.sbr
?????文件??????105679??2012-09-10?20:48??Firewall\Debug\StdAfx.obj
?????文件?????1366496??2012-09-10?20:48??Firewall\Debug\StdAfx.sbr
?????文件???????23019??2012-09-10?20:48??Firewall\Debug\TDriver.obj
?????文件???????????0??2012-10-20?15:25??Firewall\Debug\TDriver.sbr
?????文件??????205824??2012-11-13?22:46??Firewall\Debug\vc60.idb
?????文件??????380928??2012-09-10?20:48??Firewall\Debug\vc60.pdb
?????文件????????2940??2003-07-08?16:12??Firewall\DrvFltIp.h
?????文件????????7161??2003-07-08?16:20??Firewall\DrvFltIp.sys
?????文件???????53248??2003-09-26?19:54??Firewall\Firewall.exe
?????文件???????54916??2012-10-19?18:53??Firewall\FirewallApp.aps
?????文件????????6155??2012-11-13?22:49??Firewall\FirewallApp.clw
............此處省略39個文件信息
- 上一篇:VC++MP3播放器課程設計實驗報告
- 下一篇:哲學家進餐問題的C語言實現
評論
共有 條評論