• 大小: 2.17MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-09-12
  • 语言: 其他
  • 标签: 杀毒引擎  源代码  

资源简介

一个免费的杀毒引擎源代码,适合杀毒软件初学者进行研究。

资源截图

代码片段和文件信息

//-----------------------------------------------------------------------------
// Name:        ShellExt.cpp
// Product:     ClamWin Antivirus
//
// Author:      alch [alch at users dot sourceforge dot net]
//
// Created:     2004/19/03
// Copyright:   Copyright alch (c) 2004
// Licence:     
//   This program is free software; you can redistribute it and/or modify
//   it under the terms of the GNU General Public License as published by
//   the Free Software Foundation; either version 2 of the License or
//   (at your option) any later version.
// 
//   This program is distributed in the hope that it will be useful
//   but WITHOUT ANY WARRANTY; without even the implied warranty of
//   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
//   GNU General Public License for more details.
// 
//   You should have received a copy of the GNU General Public License
//   along with this program; if not write to the Free Software
//   Foundation Inc. 675 Mass Ave Cambridge MA 02139 USA.

//-----------------------------------------------------------------------------
 
//
// Initialize GUIDs (should be done only and at-least once per DLL/EXE)
//
#include 
#include 
#define INITGUID
#include 
#include 
#include “ShellExt.h“


//
// Global variables
//
UINT      g_cRefThisDll = 0;    // Reference count of this DLL.
HINSTANCE g_hmodThisDll = NULL; // Handle to this DLL itself.

extern “C“ int APIENTRY DllMain(HINSTANCE hInstance DWORD dwReason LPVOID lpReserved)
{
if (dwReason == DLL_PROCESS_ATTACH)
g_hmodThisDll = hInstance;

return 1;   // ok
}

//---------------------------------------------------------------------------
// DllCanUnloadNow
//---------------------------------------------------------------------------
STDAPI  DllCanUnloadNow(void)
{
return (g_cRefThisDll == 0 ? S_OK : S_FALSE);
}

//---------------------------------------------------------------------------
// DllGetClassobject
//---------------------------------------------------------------------------
STDAPI DllGetClassobject(REFCLSID rclsid REFIID riid LPVOID *ppvOut)
{
*ppvOut = NULL;

if (IsEqualIID(rclsid CLSID_ShellExtension))
{
CShellExtClassFactory *pcf = new CShellExtClassFactory;

return pcf->QueryInterface(riid ppvOut);
}

return CLASS_E_CLASSNOTAVAILABLE;
}

//---------------------------------------------------------------------------
// CShellExtClassFactory::CShellExtClassFactory
//---------------------------------------------------------------------------

CShellExtClassFactory::CShellExtClassFactory()
{
m_cRef = 0L;

g_cRefThisDll++;    
}

//---------------------------------------------------------------------------
// CShellExtClassFactory::~CShellExtClassFactory
//---------------------------------------------------------------------------

CShellExtClassFactory::~CShellExtClassFactory()    

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件       1333  2006-03-25 20:19  20070327_clamwin-0.88.1-src\build.bat

     文件        557  2006-03-18 11:30  20070327_clamwin-0.88.1-src\build.sh

     文件       8819  2006-04-07 12:14  20070327_clamwin-0.88.1-src\ChangeLog

     文件      18332  2005-07-06 11:57  20070327_clamwin-0.88.1-src\COPYING

     文件       1849  2006-03-21 11:33  20070327_clamwin-0.88.1-src\cpp\build.bat

     文件        256  2005-07-06 12:02  20070327_clamwin-0.88.1-src\cpp\ExplorerShell.def

     文件       2519  2006-04-06 17:28  20070327_clamwin-0.88.1-src\cpp\ExplorerShell.rc

     文件        460  2005-07-06 12:02  20070327_clamwin-0.88.1-src\cpp\resource.h

     文件       7186  2005-07-06 12:02  20070327_clamwin-0.88.1-src\cpp\ShellExt.cpp

     文件       2958  2005-07-06 12:02  20070327_clamwin-0.88.1-src\cpp\ShellExt.h

     文件        519  2005-07-06 12:02  20070327_clamwin-0.88.1-src\cpp\ShellExt.reg

     文件      12524  2006-03-24 19:59  20070327_clamwin-0.88.1-src\cpp\ShellExtImpl.cpp

     文件       1601  2006-04-07 12:16  20070327_clamwin-0.88.1-src\credits

     文件     196140  2006-04-06 15:24  20070327_clamwin-0.88.1-src\doc\HTML\clam.chm

     文件      91907  2006-04-06 15:02  20070327_clamwin-0.88.1-src\doc\HTML\config_html_m7d648a14.png

     文件       8801  2006-04-06 15:02  20070327_clamwin-0.88.1-src\doc\HTML\config_html_m8aad2fa.png

     文件       5709  2006-04-06 15:20  20070327_clamwin-0.88.1-src\doc\HTML\cover_html_2bb1eb73.png

     文件      16275  2006-04-06 15:03  20070327_clamwin-0.88.1-src\doc\HTML\usage_html_14967aa2.png

     文件       2204  2005-07-06 12:03  20070327_clamwin-0.88.1-src\doc\HTML\usage_html_388a8860.png

     文件      15411  2006-04-06 15:03  20070327_clamwin-0.88.1-src\doc\HTML\usage_html_m34e90e33.png

     文件      12205  2005-07-06 12:03  20070327_clamwin-0.88.1-src\doc\HTML\usage_html_m545fc31b.png

     文件      13492  2005-07-06 12:03  20070327_clamwin-0.88.1-src\doc\images\Clam.png

     文件      91907  2005-07-06 12:03  20070327_clamwin-0.88.1-src\doc\images\filters.png

     文件      12920  2005-07-06 12:03  20070327_clamwin-0.88.1-src\doc\images\install1.png

     文件      12205  2005-07-06 12:03  20070327_clamwin-0.88.1-src\doc\images\MainWindow.png

     文件       8801  2005-07-06 12:03  20070327_clamwin-0.88.1-src\doc\images\prefs-general.png

     文件       5709  2005-07-06 12:03  20070327_clamwin-0.88.1-src\doc\images\title.png

     文件     378527  2006-04-06 15:23  20070327_clamwin-0.88.1-src\doc\manual.pdf

     文件       3150  2006-04-07 12:27  20070327_clamwin-0.88.1-src\INSTALL

     文件     476103  2006-04-07 12:05  20070327_clamwin-0.88.1-src\patches\clamav-0.88.1-native.patch

............此处省略149个文件信息

评论

共有 条评论