Hi,
This is my simple program that reads the value from KalOnline speed pointer.
There is error.
The problem is that I cant open engine.exe process so easy.
I heard I need is to enable the SeDebugPrivilege privilege.
Its possible to read the value from KalOnline memory this way?
Any one can help me with that?
This is my simple program that reads the value from KalOnline speed pointer.
PHP Code:
#include <windows.h>
#include <iostream>
#include <conio.h>
LPCWSTR lpstrWindowName = L"KalOnline";
HWND hWindow;
DWORD dwProcess;
HANDLE hProcess;
int value = 0;
DWORD* speedpointer = (DWORD*)0x00740240;
int main()
{
if (!(hWindow = FindWindow(NULL, lpstrWindowName)))
printf ("Window not found\n");
if (!GetWindowThreadProcessId(hWindow, &dwProcess))
printf ("Process not found\n");
if (!(hProcess = OpenProcess(PROCESS_VM_READ, false, dwProcess)))
printf ("Cant open process! \n");
if (!ReadProcessMemory(hProcess, speedpointer, &value, 4, NULL)) // there is no offset to speed pointer, but dont worry its test program
{
printf ("Cant read in: 0x00%X \n", speedpointer);
printf ("Error: %d\n", GetLastError());
}
else
{
printf ("Memory: %s \n", value);
}
getch();
return 0;
}
Code:
Cant read in: 0x00740240
I heard I need is to enable the SeDebugPrivilege privilege.
Its possible to read the value from KalOnline memory this way?
Any one can help me with that?