#pragma once #include <windows.h> #include <TlHelp32.h> #include "stdio.h" //线
// _remotethreaddemo.cpp : Defines the entry point for the console application. // Author:秋镇菜 #inc
利用CreateRemoteThread将dll写进excel.exe.利用SetWindowLong()改变excel中右键消息。dll源程序:#include <windows.h>
#pragma once #include <windows.h> #include <TlHelp32.h> #include "stdio.h"
花了一个下午翻了MSDN,写了这个例子,为了安全,我用Delphi建了个什么也没有作的程序PRjzzhost.exe,将它用作被注入的宿主进程. 写了一个TestDll.Dll,里面只有一个Log函数
原作: 转自: 步骤1:首先在你的进程中创建函数MyFunc,我们将把它放在另一个进程中运行,这里以windows 计算器为目标进程。 static DWORD WINAPI MyFunc (LPVO