草庐IT

GameText

全部标签

c++ - 从另一个进程调用函数

我提前为我的英语道歉:D如何在知道指向进程的指针的情况下调用进程中的函数?我试过这个:进程.cpp:DWORDpid;HWNDhwnd;HANDLEphandle;voidAttach(){hwnd=FindWindow(NULL,L"GTA:SA:MP");if(!hwnd){cout主要.cpp:intmain(){std::cout我得到以下异常:Anexceptionwasthrownattheaddress0x006EF7B6inwh_mta.exe:0xC0000005:accessviolationduringexecutionat0x006EF7B6.为什么会这样?如何