From e2daea7bcd7cf0a26320fada46c014825d0c23ce Mon Sep 17 00:00:00 2001 From: Alifcccccc <984022254@qq.com> Date: Mon, 29 Aug 2016 12:56:14 +0800 Subject: [PATCH] Add files via upload --- LoadImageCallBack/Dll/Dll/Dll.cpp | 6 + LoadImageCallBack/Dll/Dll/Dll.vcxproj | 233 ++++++++++++++++++ LoadImageCallBack/Dll/Dll/Dll.vcxproj.filters | 39 +++ LoadImageCallBack/Dll/Dll/Dll.vcxproj.user | 3 + LoadImageCallBack/Dll/Dll/dllmain.cpp | 33 +++ LoadImageCallBack/Dll/Dll/stdafx.cpp | 8 + LoadImageCallBack/Dll/Dll/stdafx.h | 16 ++ LoadImageCallBack/Dll/Dll/targetver.h | 8 + 8 files changed, 346 insertions(+) create mode 100644 LoadImageCallBack/Dll/Dll/Dll.cpp create mode 100644 LoadImageCallBack/Dll/Dll/Dll.vcxproj create mode 100644 LoadImageCallBack/Dll/Dll/Dll.vcxproj.filters create mode 100644 LoadImageCallBack/Dll/Dll/Dll.vcxproj.user create mode 100644 LoadImageCallBack/Dll/Dll/dllmain.cpp create mode 100644 LoadImageCallBack/Dll/Dll/stdafx.cpp create mode 100644 LoadImageCallBack/Dll/Dll/stdafx.h create mode 100644 LoadImageCallBack/Dll/Dll/targetver.h diff --git a/LoadImageCallBack/Dll/Dll/Dll.cpp b/LoadImageCallBack/Dll/Dll/Dll.cpp new file mode 100644 index 0000000..3002388 --- /dev/null +++ b/LoadImageCallBack/Dll/Dll/Dll.cpp @@ -0,0 +1,6 @@ +// Dll.cpp : 定义 DLL 应用程序的导出函数。 +// + +#include "stdafx.h" + + diff --git a/LoadImageCallBack/Dll/Dll/Dll.vcxproj b/LoadImageCallBack/Dll/Dll/Dll.vcxproj new file mode 100644 index 0000000..f38b56e --- /dev/null +++ b/LoadImageCallBack/Dll/Dll/Dll.vcxproj @@ -0,0 +1,233 @@ +锘 + + + + Debug + Itanium + + + Debug + Win32 + + + Debug + x64 + + + Release + Itanium + + + Release + Win32 + + + Release + x64 + + + + {4559DB89-E784-4DE3-9C88-6A3512731B99} + Win32Proj + Dll + + + + DynamicLibrary + true + Unicode + + + DynamicLibrary + true + Unicode + + + DynamicLibrary + true + Unicode + + + DynamicLibrary + false + true + Unicode + + + DynamicLibrary + false + true + Unicode + + + DynamicLibrary + false + true + Unicode + + + + + + + + + + + + + + + + + + + + + + + + + true + + + true + + + true + + + false + + + false + + + false + + + + Use + Level3 + Disabled + WIN32;_DEBUG;_WINDOWS;_USRDLL;DLL_EXPORTS;%(PreprocessorDefinitions) + + + Windows + true + + + + + Use + Level3 + Disabled + WIN32;_DEBUG;_WINDOWS;_USRDLL;DLL_EXPORTS;%(PreprocessorDefinitions) + + + Windows + true + + + + + Use + Level3 + Disabled + WIN32;_DEBUG;_WINDOWS;_USRDLL;DLL_EXPORTS;%(PreprocessorDefinitions) + + + Windows + true + + + + + Level3 + Use + MaxSpeed + true + true + WIN32;NDEBUG;_WINDOWS;_USRDLL;DLL_EXPORTS;%(PreprocessorDefinitions) + + + Windows + true + true + true + + + + + Level3 + Use + MaxSpeed + true + true + WIN32;NDEBUG;_WINDOWS;_USRDLL;DLL_EXPORTS;%(PreprocessorDefinitions) + + + Windows + true + true + true + + + + + Level3 + Use + MaxSpeed + true + true + WIN32;NDEBUG;_WINDOWS;_USRDLL;DLL_EXPORTS;%(PreprocessorDefinitions) + + + Windows + true + true + true + + + + + + + + + + + + + false + false + false + + + + + + + false + false + false + + + + + + + + + Create + Create + Create + Create + Create + Create + + + + + + \ No newline at end of file diff --git a/LoadImageCallBack/Dll/Dll/Dll.vcxproj.filters b/LoadImageCallBack/Dll/Dll/Dll.vcxproj.filters new file mode 100644 index 0000000..c71a647 --- /dev/null +++ b/LoadImageCallBack/Dll/Dll/Dll.vcxproj.filters @@ -0,0 +1,39 @@ +锘 + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hpp;hxx;hm;inl;inc;xsd + + + {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} + rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms + + + + + + + + 澶存枃浠 + + + 澶存枃浠 + + + + + 婧愭枃浠 + + + 婧愭枃浠 + + + 婧愭枃浠 + + + \ No newline at end of file diff --git a/LoadImageCallBack/Dll/Dll/Dll.vcxproj.user b/LoadImageCallBack/Dll/Dll/Dll.vcxproj.user new file mode 100644 index 0000000..695b5c7 --- /dev/null +++ b/LoadImageCallBack/Dll/Dll/Dll.vcxproj.user @@ -0,0 +1,3 @@ +锘 + + \ No newline at end of file diff --git a/LoadImageCallBack/Dll/Dll/dllmain.cpp b/LoadImageCallBack/Dll/Dll/dllmain.cpp new file mode 100644 index 0000000..bc62146 --- /dev/null +++ b/LoadImageCallBack/Dll/Dll/dllmain.cpp @@ -0,0 +1,33 @@ +// dllmain.cpp : 定义 DLL 应用程序的入口点。 +#include "stdafx.h" + + + +DWORD WINAPI ThreadProc(LPVOID lpParameter); +BOOL APIENTRY DllMain( HMODULE hModule, + DWORD ul_reason_for_call, + LPVOID lpReserved + ) +{ + switch (ul_reason_for_call) + { + case DLL_PROCESS_ATTACH: + { + + MessageBox(NULL,L"注入成功",L"a",1); + HANDLE hIhread = CreateThread(NULL,0,(LPTHREAD_START_ROUTINE)ThreadProc,NULL,0,NULL); + } + case DLL_THREAD_ATTACH: + case DLL_THREAD_DETACH: + case DLL_PROCESS_DETACH: + break; + } + return TRUE; +} + + + +DWORD WINAPI ThreadProc(LPVOID lpParameter) +{ + return 0; +} \ No newline at end of file diff --git a/LoadImageCallBack/Dll/Dll/stdafx.cpp b/LoadImageCallBack/Dll/Dll/stdafx.cpp new file mode 100644 index 0000000..e686635 --- /dev/null +++ b/LoadImageCallBack/Dll/Dll/stdafx.cpp @@ -0,0 +1,8 @@ +// stdafx.cpp : 只包括标准包含文件的源文件 +// Dll.pch 将作为预编译头 +// stdafx.obj 将包含预编译类型信息 + +#include "stdafx.h" + +// TODO: 在 STDAFX.H 中 +// 引用任何所需的附加头文件,而不是在此文件中引用 diff --git a/LoadImageCallBack/Dll/Dll/stdafx.h b/LoadImageCallBack/Dll/Dll/stdafx.h new file mode 100644 index 0000000..acfe85f --- /dev/null +++ b/LoadImageCallBack/Dll/Dll/stdafx.h @@ -0,0 +1,16 @@ +// stdafx.h : 标准系统包含文件的包含文件, +// 或是经常使用但不常更改的 +// 特定于项目的包含文件 +// + +#pragma once + +#include "targetver.h" + +#define WIN32_LEAN_AND_MEAN // 从 Windows 头文件中排除极少使用的信息 +// Windows 头文件: +#include + + + +// TODO: 在此处引用程序需要的其他头文件 diff --git a/LoadImageCallBack/Dll/Dll/targetver.h b/LoadImageCallBack/Dll/Dll/targetver.h new file mode 100644 index 0000000..aadba2f --- /dev/null +++ b/LoadImageCallBack/Dll/Dll/targetver.h @@ -0,0 +1,8 @@ +#pragma once + +// 包括 SDKDDKVer.h 将定义可用的最高版本的 Windows 平台。 + +// 如果要为以前的 Windows 平台生成应用程序,请包括 WinSDKVer.h,并将 +// WIN32_WINNT 宏设置为要支持的平台,然后再包括 SDKDDKVer.h。 + +#include