通过CreateRemoteThread注入代码的步骤
1.通过FindWindow、GetWindowThreadProcessId、OpenProcess打开目标进程
2.通过VirtualAllocEx函数在目标进程中分配内存
3.使用WriteProcessMemory将代码和变量写入到目标进程
4.使用CreateRemoteThread启动远程线程,运行注入的代码
定义自定义函数
//自定义函数
static DWORD myFuncStart(void *arg){
int aa = 0;
aa = *(int