EzCad二次开发源代码三


与其他三个程序包一起的,这个是个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_MFCDebugHOOK_MFC.dll

     文件       1595  2018-08-14 15:39  HOOK_MFCDebugHOOK_MFC.exp

     文件   17018116  2018-08-14 15:39  HOOK_MFCDebugHOOK_MFC.ilk

     文件       2136  2018-08-14 15:39  HOOK_MFCDebugHOOK_MFC.lib

     文件   25120768  2018-08-14 15:39  HOOK_MFCDebugHOOK_MFC.pdb

     文件       2447  2018-08-14 15:39  HOOK_MFCHOOK_MFCDebugHOOK_MFC.Build.CppClean.log

     文件       4126  2018-08-14 15:39  HOOK_MFCHOOK_MFCDebugHOOK_MFC.log

     文件      89966  2018-08-14 15:39  HOOK_MFCHOOK_MFCDebugHOOK_MFC.obj

     文件   30015488  2018-08-14 15:39  HOOK_MFCHOOK_MFCDebugHOOK_MFC.pch

     文件      16404  2018-08-14 15:39  HOOK_MFCHOOK_MFCDebugHOOK_MFC.res

     文件       1200  2018-08-14 15:39  HOOK_MFCHOOK_MFCDebugHOOK_MFC.tlb

     文件       1686  2018-08-14 15:39  HOOK_MFCHOOK_MFCDebugHOOK_MFC.tlogcl.command.1.tlog

     文件      42980  2018-08-14 15:39  HOOK_MFCHOOK_MFCDebugHOOK_MFC.tlogCL.read.1.tlog

     文件       1462  2018-08-14 15:39  HOOK_MFCHOOK_MFCDebugHOOK_MFC.tlogCL.write.1.tlog

     文件        188  2018-08-14 15:39  HOOK_MFCHOOK_MFCDebugHOOK_MFC.tlogHOOK_MFC.lastbuildstate

     文件        468  2018-08-14 15:39  HOOK_MFCHOOK_MFCDebugHOOK_MFC.tlogHOOK_MFC.write.1u.tlog

     文件       1704  2018-08-14 15:39  HOOK_MFCHOOK_MFCDebugHOOK_MFC.tloglink.command.1.tlog

     文件       6852  2018-08-14 15:39  HOOK_MFCHOOK_MFCDebugHOOK_MFC.tloglink.read.1.tlog

     文件        950  2018-08-14 15:39  HOOK_MFCHOOK_MFCDebugHOOK_MFC.tloglink.write.1.tlog

     文件        702  2018-08-14 15:39  HOOK_MFCHOOK_MFCDebugHOOK_MFC.tlogmidl.command.1.tlog

     文件       1976  2018-08-14 15:39  HOOK_MFCHOOK_MFCDebugHOOK_MFC.tlogmidl.read.1.tlog

     文件        640  2018-08-14 15:39  HOOK_MFCHOOK_MFCDebugHOOK_MFC.tlogmidl.write.1.tlog

     文件        676  2018-08-14 15:39  HOOK_MFCHOOK_MFCDebugHOOK_MFC.tlog
c.command.1.tlog

     文件       6198  2018-08-14 15:39  HOOK_MFCHOOK_MFCDebugHOOK_MFC.tlog
c.read.1.tlog

     文件        326  2018-08-14 15:39  HOOK_MFCHOOK_MFCDebugHOOK_MFC.tlog
c.write.1.tlog

     文件     871508  2018-08-14 15:39  HOOK_MFCHOOK_MFCDebugstdafx.obj

     文件    1453056  2018-08-14 15:39  HOOK_MFCHOOK_MFCDebugvc120.idb

     文件    4395008  2018-08-14 15:39  HOOK_MFCHOOK_MFCDebugvc120.pdb

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

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

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

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。

发表评论

评论列表(条)