91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 1.88MB
    文件類型: .rar
    金幣: 2
    下載: 0 次
    發布日期: 2023-08-31
  • 語言: C/C++
  • 標簽: 防火墻??

資源簡介

是用C語言實現的U盤防火墻,可以對U盤中的某些病毒有掃描殺毒功能

資源截圖

代碼片段和文件信息

#include?“stdafx.h“
#include?“UdiskFireWall.h“
#include?“FindVirusDlg.h“

#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
//?CFindVirusDlg?dialog


CFindVirusDlg::CFindVirusDlg(CWnd*?pParent?/*=NULL*/)
:?CDialog(CFindVirusDlg::IDD?pParent)
{
//{{AFX_DATA_INIT(CFindVirusDlg)
m_tishi?=?_T(““);
m_note?=?_T(““);
m_virusname?=?_T(““);
//}}AFX_DATA_INIT
}


void?CFindVirusDlg::DoDataExchange(CDataExchange*?pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CFindVirusDlg)
DDX_Text(pDX?IDC_TISHI?m_tishi);
DDX_Text(pDX?IDC_NOTE?m_note);
DDX_Text(pDX?IDC_VIRUSNAME?m_virusname);
//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CFindVirusDlg?CDialog)
//{{AFX_MSG_MAP(CFindVirusDlg)
ON_BN_CLICKED(IDC_BUTTON_VIEWAUTORUN?OnButtonViewautorun)
ON_WM_TIMER()
ON_BN_CLICKED(IDC_BUTTON_KILLVIRUS?OnButtonKillvirus)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
//?CFindVirusDlg?message?handlers

BOOL?CFindVirusDlg::OnInitDialog()?
{
CDialog::OnInitDialog();

//?TODO:?Add?extra?initialization?here
//----------將窗口置頂的代碼-----------------------------------
const???CWnd???*???pWndInsertAfter;?
????pWndInsertAfter???=???&wndTopMost;?
????SetWindowPos(pWndInsertAfter0000SWP_NOSIZE?|?SWP_NOMOVE);?
//---------------------------------------------------------------
SetTimer(NULL1000NULL);
// ShowWindow(SW_NORMAL);
SetForegroundWindow();
Beep(2000100);

return?TRUE;??//?return?TRUE?unless?you?set?the?focus?to?a?control
??????????????//?EXCEPTION:?OCX?Property?Pages?should?return?FALSE
}

void?CFindVirusDlg::OnButtonViewautorun()???//查看autorun.inf文件
{
//?TODO:?Add?your?control?notification?handler?code?here
KillTimer(NULL);
CString?tmpStr;
tmpStr?=?m_tishi.Mid(414);
// MessageBox(tmpStr);
ShellExecute(m_hWnd?NULL?“notepad.exe“?tmpStr?NULL?SW_SHOWNORMAL);
}

void?CFindVirusDlg::OnTimer(UINT?nIDEvent)?
{
//?TODO:?Add?your?message?handler?code?here?and/or?call?default
// ShowWindow(SW_NORMAL);
SetForegroundWindow();

CDialog::OnTimer(nIDEvent);
}
int?DeleteFile(CString?FileName){
CFileStatus?status;
if?(?CFile::GetStatus(FileNamestatus)?==?FALSE?)?return?-1;
status.m_attribute=0x00;
CFile::SetStatus(FileNamestatus);
CFile::Remove(FileName);
return?0;
}
void?CFindVirusDlg::OnButtonKillvirus()?
{
//?TODO:?Add?your?control?notification?handler?code?here
CString?tmpStr;
tmpStr?=?m_tishi.Mid(414);
if?(findtype?==?0?||?findtype?==?2)?{
if?(?DeleteFile(tmpStr)==0?)?MessageBox(“刪除autorun.inf文件成功!如果是u盤的話,強烈建議先拔下再重新插上?!啊安僮魍戤叀癕B_ICONINFORMATION);
else?MessageBox(“刪除autorun.inf文件失敗?!啊安僮魍戤叀癕B_ICONINFORMATION);
}
if?(findtype?==?1)?{
int?flag1=0flag2=0;
if?(?DeleteFile(tmpStr)==0?)?flag1=1;
tmpStr?=?m_tishi.Mid(43);

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----

?????文件??????25357??2011-04-10?20:12??7-U盤防火墻\程序+源代碼\UdiskFireWall\Debug\FindVirusDlg.obj

?????文件?????105909??2011-04-08?17:53??7-U盤防火墻\程序+源代碼\UdiskFireWall\Debug\StdAfx.obj

?????文件?????127110??2011-04-10?20:12??7-U盤防火墻\程序+源代碼\UdiskFireWall\Debug\UdiskFireWall.exe

?????文件?????306364??2011-04-10?20:12??7-U盤防火墻\程序+源代碼\UdiskFireWall\Debug\UdiskFireWall.ilk

?????文件??????14365??2011-04-08?17:57??7-U盤防火墻\程序+源代碼\UdiskFireWall\Debug\UdiskFireWall.obj

?????文件????5495016??2011-04-08?17:53??7-U盤防火墻\程序+源代碼\UdiskFireWall\Debug\UdiskFireWall.pch

?????文件?????435200??2011-04-10?20:12??7-U盤防火墻\程序+源代碼\UdiskFireWall\Debug\UdiskFireWall.pdb

?????文件???????3308??2011-04-10?16:38??7-U盤防火墻\程序+源代碼\UdiskFireWall\Debug\UdiskFireWall.res

?????文件??????62179??2011-04-10?20:12??7-U盤防火墻\程序+源代碼\UdiskFireWall\Debug\UdiskFireWallDlg.obj

?????文件?????205824??2011-04-11?18:10??7-U盤防火墻\程序+源代碼\UdiskFireWall\Debug\vc60.idb

?????文件?????364544??2011-04-10?20:12??7-U盤防火墻\程序+源代碼\UdiskFireWall\Debug\vc60.pdb

?????文件???????3725??2011-04-10?20:12??7-U盤防火墻\程序+源代碼\UdiskFireWall\FindVirusDlg.cpp

?????文件???????1387??2007-02-28?13:36??7-U盤防火墻\程序+源代碼\UdiskFireWall\FindVirusDlg.h

?????文件???????3705??2007-02-27?10:47??7-U盤防火墻\程序+源代碼\UdiskFireWall\ReadMe.txt

?????文件???????1078??2007-03-01?11:24??7-U盤防火墻\程序+源代碼\UdiskFireWall\res\UdiskFireWall.ico

?????文件????????405??2007-02-27?10:47??7-U盤防火墻\程序+源代碼\UdiskFireWall\res\UdiskFireWall.rc2

?????文件???????1288??2011-04-10?16:38??7-U盤防火墻\程序+源代碼\UdiskFireWall\resource.h

?????文件????????215??2007-02-27?10:47??7-U盤防火墻\程序+源代碼\UdiskFireWall\StdAfx.cpp

?????文件????????999??2007-02-27?10:47??7-U盤防火墻\程序+源代碼\UdiskFireWall\StdAfx.h

?????文件??????22304??2011-04-17?09:39??7-U盤防火墻\程序+源代碼\UdiskFireWall\UdiskFireWall.aps

?????文件???????2185??2011-04-18?17:57??7-U盤防火墻\程序+源代碼\UdiskFireWall\UdiskFireWall.clw

?????文件???????2307??2007-03-06?11:02??7-U盤防火墻\程序+源代碼\UdiskFireWall\UdiskFireWall.cpp

?????文件???????4418??2007-02-27?20:18??7-U盤防火墻\程序+源代碼\UdiskFireWall\UdiskFireWall.dsp

?????文件????????534??2007-02-27?10:47??7-U盤防火墻\程序+源代碼\UdiskFireWall\UdiskFireWall.dsw

?????文件???????1401??2007-02-27?10:47??7-U盤防火墻\程序+源代碼\UdiskFireWall\UdiskFireWall.h

?????文件?????107520??2011-04-18?17:57??7-U盤防火墻\程序+源代碼\UdiskFireWall\UdiskFireWall.ncb

?????文件??????75776??2011-04-18?17:57??7-U盤防火墻\程序+源代碼\UdiskFireWall\UdiskFireWall.opt

?????文件????????260??2011-04-11?17:27??7-U盤防火墻\程序+源代碼\UdiskFireWall\UdiskFireWall.plg

?????文件???????6898??2011-04-10?16:38??7-U盤防火墻\程序+源代碼\UdiskFireWall\UdiskFireWall.rc

?????文件??????15353??2011-04-10?20:11??7-U盤防火墻\程序+源代碼\UdiskFireWall\UdiskFireWallDlg.cpp

............此處省略10個文件信息

評論

共有 條評論