#include <Windows.h>
#include <iostream>
using namespace std;
#define EngineUpgrade_Addr 0x2F7EDDC8
#define EngineUpgrade_Value 1000
const SIZE_T EngineUpgrade_Size = sizeof(EngineUpgrade_Value);
SIZE_T EngineUpgrade_Sent = 0;
bool AIONClient()
{
HWND WindowHandle;
DWORD ProcessId;
HANDLE ProcessHandle;
if(!(WindowHandle = FindWindow(NULL,"AION Client")))
cout<<"AION Client"<<endl;
while(!WindowHandle)
{
Sleep(200);
WindowHandle = FindWindow(NULL,"AION Client");
}
GetWindowThreadProcessId(WindowHandle,&ProcessId);
ProcessHandle = OpenProcess(PROCESS_ALL_ACCESS,0,ProcessId);
cout<<"AION.bin"<<endl;
// זה מנסה לקרוא מהכתובת
LPVOID upgradelevel;
SIZE_T bytesgot;
ReadProcessMemory(ProcessHandle ,(void*)EngineUpgrade_Addr ,&upgradelevel ,4 ,&bytesgot);
printf("Getting upgrade info... \n");
printf("Healthe Point: %i",upgradelevel);
printf("\nBytes got: %i",bytesgot);
// זה כותב לכתובת
while(1)
{
WriteProcessMemory(ProcessHandle ,(void*)EngineUpgrade_Addr ,(LPCVOID)EngineUpgrade_Value ,EngineUpgrade_Size ,&EngineUpgrade_Sent);
Sleep(50);
}
return true;
}
if you can please help me i new on it ,and i try to change the value of 0x2F7EDDC8 to 1000... did i well?? if not what is the outer way???
the error that i get: [Linker error] undefined reference to `WinMain@16'
#include <iostream>
using namespace std;
#define EngineUpgrade_Addr 0x2F7EDDC8
#define EngineUpgrade_Value 1000
const SIZE_T EngineUpgrade_Size = sizeof(EngineUpgrade_Value);
SIZE_T EngineUpgrade_Sent = 0;
bool AIONClient()
{
HWND WindowHandle;
DWORD ProcessId;
HANDLE ProcessHandle;
if(!(WindowHandle = FindWindow(NULL,"AION Client")))
cout<<"AION Client"<<endl;
while(!WindowHandle)
{
Sleep(200);
WindowHandle = FindWindow(NULL,"AION Client");
}
GetWindowThreadProcessId(WindowHandle,&ProcessId);
ProcessHandle = OpenProcess(PROCESS_ALL_ACCESS,0,ProcessId);
cout<<"AION.bin"<<endl;
// זה מנסה לקרוא מהכתובת
LPVOID upgradelevel;
SIZE_T bytesgot;
ReadProcessMemory(ProcessHandle ,(void*)EngineUpgrade_Addr ,&upgradelevel ,4 ,&bytesgot);
printf("Getting upgrade info... \n");
printf("Healthe Point: %i",upgradelevel);
printf("\nBytes got: %i",bytesgot);
// זה כותב לכתובת
while(1)
{
WriteProcessMemory(ProcessHandle ,(void*)EngineUpgrade_Addr ,(LPCVOID)EngineUpgrade_Value ,EngineUpgrade_Size ,&EngineUpgrade_Sent);
Sleep(50);
}
return true;
}
if you can please help me i new on it ,and i try to change the value of 0x2F7EDDC8 to 1000... did i well?? if not what is the outer way???
the error that i get: [Linker error] undefined reference to `WinMain@16'