资源简介

与其他三个程序包一起的,这个是个dll动态链接库的程序,支持对二维码的实时扫描并显示

资源截图

代码片段和文件信息

// HOOK_MFC.cpp : Defines the initialization routines for the DLL.
//

#include “stdafx.h“
#include “HOOK_MFC.h“

#ifdef _DEBUG
#define new DEBUG_NEW
#endif



extern “C“  __declspec (dllexport) int __stdcall StopHook();
extern “C“  __declspec (dllexport) int __stdcall StartHook();
extern “C“  __declspec (dllexport) CString  Get_strSendHandle();

HINSTANCE glhInstance = NULL;

HANDLE hProcess;
char ch[256];
int i;
//CString strSend;
CString strSend;
#pragma data_seg(“mydata“)
HHOOK hook = NULL;
#pragma data_seg()


LRESULT CALLBACK KeyboardProc(
int nCode
WPARAM wParam
LPARAM lParam
);



//
//TODO: If this DLL is dynamically linked against the MFC DLLs
// any functions exported from this DLL which call into
// MFC must have the AFX_MANAGE_STATE macro added at the
// very beginning of the function.
//
// For example:
//
// extern “C“ BOOL PASCAL EXPORT ExportedFunction()
// {
// AFX_MANAGE_STATE(AfxGetStaticModuleState());
// // normal function body here
// }
//
// It is very important that this macro appear in each
// function prior to any calls into MFC.  This means that
// it must appear as the first statement within the 
// function even before any object variable declarations
// as their constructors may generate calls into the MFC
// DLL.
//
// Please see MFC Technical Notes 33 and 58 for additional
// details.
//

// CHOOK_MFCApp

BEGIN_MESSAGE_MAP(CHOOK_MFCApp CWinApp)
END_MESSAGE_MAP()


// CHOOK_MFCApp construction

CHOOK_MFCApp::CHOOK_MFCApp()
{
// TODO: add construction code here
// Place all significant initialization in InitInstance
}


// The one and only CHOOK_MFCApp object

CHOOK_MFCApp theApp;

const GUID CDECL _tlid = { 0x88E0DE88 0xAF32 0x4E8E { 0x95 0x7F 0xC8 0x92 0x16 0x40 0xFA 0x5B } };
const WORD _wVerMajor = 1;
const WORD _wVerMinor = 0;


// CHOOK_MFCApp initialization

BOOL CHOOK_MFCApp::InitInstance()
{
CWinApp::InitInstance();

// Register all OLE server (factories) as running.  This enables the
//  OLE libraries to create objects from other applications.
COleobjectFactory::RegisterAll();

return TRUE;
}

// DllGetClassobject - Returns class factory

STDAPI DllGetClassobject(REFCLSID rclsid REFIID riid LPVOID* ppv)
{
AFX_MANAGE_STATE(AfxGetStaticModuleState());
return AfxDllGetClassobject(rclsid riid ppv);
}


// DllCanUnloadNow - Allows COM to unload DLL

STDAPI DllCanUnloadNow(void)
{
AFX_MANAGE_STATE(AfxGetStaticModuleState());
return AfxDllCanUnloadNow();
}


// DllRegisterServer - Adds entries to the system registry

STDAPI DllRegisterServer(void)
{
AFX_MANAGE_STATE(AfxGetStaticModuleState());

if (!AfxOleRegisterTypeLib(AfxGetInstanceHandle() _tlid))
return SELFREG_E_TYPELIB;

if (!COleobjectFactory::UpdateRegistryAll())
return SELFREG_E_CLASS;

return S_OK;
}


// DllUnregisterServer - Removes entries from the system r

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

     文件    7474176  2018-08-14 15:39  HOOK_MFC\Debug\HOOK_MFC.dll

     文件       1595  2018-08-14 15:39  HOOK_MFC\Debug\HOOK_MFC.exp

     文件   17018116  2018-08-14 15:39  HOOK_MFC\Debug\HOOK_MFC.ilk

     文件       2136  2018-08-14 15:39  HOOK_MFC\Debug\HOOK_MFC.lib

     文件   25120768  2018-08-14 15:39  HOOK_MFC\Debug\HOOK_MFC.pdb

     文件       2447  2018-08-14 15:39  HOOK_MFC\HOOK_MFC\Debug\HOOK_MFC.Build.CppClean.log

     文件       4126  2018-08-14 15:39  HOOK_MFC\HOOK_MFC\Debug\HOOK_MFC.log

     文件      89966  2018-08-14 15:39  HOOK_MFC\HOOK_MFC\Debug\HOOK_MFC.obj

     文件   30015488  2018-08-14 15:39  HOOK_MFC\HOOK_MFC\Debug\HOOK_MFC.pch

     文件      16404  2018-08-14 15:39  HOOK_MFC\HOOK_MFC\Debug\HOOK_MFC.res

     文件       1200  2018-08-14 15:39  HOOK_MFC\HOOK_MFC\Debug\HOOK_MFC.tlb

     文件       1686  2018-08-14 15:39  HOOK_MFC\HOOK_MFC\Debug\HOOK_MFC.tlog\cl.command.1.tlog

     文件      42980  2018-08-14 15:39  HOOK_MFC\HOOK_MFC\Debug\HOOK_MFC.tlog\CL.read.1.tlog

     文件       1462  2018-08-14 15:39  HOOK_MFC\HOOK_MFC\Debug\HOOK_MFC.tlog\CL.write.1.tlog

     文件        188  2018-08-14 15:39  HOOK_MFC\HOOK_MFC\Debug\HOOK_MFC.tlog\HOOK_MFC.lastbuildstate

     文件        468  2018-08-14 15:39  HOOK_MFC\HOOK_MFC\Debug\HOOK_MFC.tlog\HOOK_MFC.write.1u.tlog

     文件       1704  2018-08-14 15:39  HOOK_MFC\HOOK_MFC\Debug\HOOK_MFC.tlog\link.command.1.tlog

     文件       6852  2018-08-14 15:39  HOOK_MFC\HOOK_MFC\Debug\HOOK_MFC.tlog\link.read.1.tlog

     文件        950  2018-08-14 15:39  HOOK_MFC\HOOK_MFC\Debug\HOOK_MFC.tlog\link.write.1.tlog

     文件        702  2018-08-14 15:39  HOOK_MFC\HOOK_MFC\Debug\HOOK_MFC.tlog\midl.command.1.tlog

     文件       1976  2018-08-14 15:39  HOOK_MFC\HOOK_MFC\Debug\HOOK_MFC.tlog\midl.read.1.tlog

     文件        640  2018-08-14 15:39  HOOK_MFC\HOOK_MFC\Debug\HOOK_MFC.tlog\midl.write.1.tlog

     文件        676  2018-08-14 15:39  HOOK_MFC\HOOK_MFC\Debug\HOOK_MFC.tlog\rc.command.1.tlog

     文件       6198  2018-08-14 15:39  HOOK_MFC\HOOK_MFC\Debug\HOOK_MFC.tlog\rc.read.1.tlog

     文件        326  2018-08-14 15:39  HOOK_MFC\HOOK_MFC\Debug\HOOK_MFC.tlog\rc.write.1.tlog

     文件     871508  2018-08-14 15:39  HOOK_MFC\HOOK_MFC\Debug\stdafx.obj

     文件    1453056  2018-08-14 15:39  HOOK_MFC\HOOK_MFC\Debug\vc120.idb

     文件    4395008  2018-08-14 15:39  HOOK_MFC\HOOK_MFC\Debug\vc120.pdb

     文件       5245  2018-08-14 15:39  HOOK_MFC\HOOK_MFC\HOOK_MFC.cpp

     文件        287  2018-08-09 13:18  HOOK_MFC\HOOK_MFC\HOOK_MFC.def

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

评论

共有 条评论