Whats wrong with this code?
Hi.
I have a 2 offsetpointer.
The pointer is 100% working.
I try to change the value in CE (2Bytes). But the Game is Crashing while calling the function.
Whats wrong?
Thank you really much!
Regards, SawMister
I have a 2 offsetpointer.
The pointer is 100% working.
I try to change the value in CE (2Bytes). But the Game is Crashing while calling the function.
Whats wrong?
Code:
//////////////SPEED//////////////
#define BasePointer1 0x6C4F24
#define Points6 0x00000004
#define Points7 0x0000066e
DWORD val2 = 0;
bool State2 = false;
void SetSpeedhack(){
HANDLE hProc = OpenProcess(((0x000F0000L) | (0x00100000L) | 0xFFFF), 0xFFFFFF, (unsigned int)GetCurrentProcessId());
DWORD wert1 = 0;
RtlCopyMemory((LPVOID)((void*)(&wert1)), (PVOID*)((int*)((BasePointer1))), sizeof((PDWORD)(BasePointer1)));
if(wert1 > 0){
wert1+= Points6;
RtlCopyMemory((LPVOID)((void*)(&wert1)), (PVOID*)&(*(_Uint32t*)(wert1)), sizeof((PDWORD)(wert1)));
wert1+= Points7;
RtlCopyMemory((LPVOID)((void*)(&wert1)), (PVOID*)&(*(_Uint32t*)(wert1)), sizeof((PDWORD)(wert1)));
DWORD val1 = 16666;
memcpy((PVOID*)(*(int*)(&wert1)), (PWORD*)((void*)&(*(_Uint32t*)&val1)), 2);
}
}
Regards, SawMister




I kept trying to go up an extra level. I think that was your problem too? Anyway, code.