以下是在Visual C++ 6.0当中通过编译的:
UINT GameValue;
GameValue = GetDlgItemInt(IDC_EDIT2);
HWND Game_hwnd = ::FindWindow(NULL, "LP仿传奇单机版 窗口模式");
DWORD GameID;
::GetWindowThreadProcessId(Game_hwnd,&GameID);
HANDLE GameProcess = ::OpenProcess(PROCESS_ALL_ACCESS, FALSE, GameID);
::WriteProcessMemory(GameProcess, (LPVOID) 0x005722BC, &GameValue, 4, NULL);