WORD pid;
GetWindowThreadProcessId(::FindWindow(NULL, "League of Legends (TM) Client"), &pid);
HANDLE hProcess = OpenProcess(PROCESS_ALL_ACCESS, NULL, pid);
PDWORD lpflOldProtect = 0;
BYTE lpBuffer[] = { 0x8B, 0xFF, 0x55, 0x8B, 0xEC };//导致ce无法附加和注入的hook的地方:0x00000000773F9879->_(E9 E2 90 B6 9A)(8B FF 55 8B EC)
DWORD lpBaseAddress = 0x773F9879;
for (int i = 0; i < 5; i++)
{
WriteProcessMemory(hProcess, (LPVOID)lpBaseAddress, &lpBuffer, 1, NULL); |