Quote:
Originally Posted by -PinkiWinki-
Never use IsBadCodePtr ...
|
using it is better than using nothing.
and pls dont tell about page-faults etc. its a ******* hack, who cares anyway?
@topic
you may short the pointer deref'ing:
Code:
DWORD thefirst = (*(DWORD*)Base + 0x1343794); // i guess you forgot a () here... that may cause your crash. casting and deref is executed before the addition look here: http://www.cplusplus.com/doc/tutorial/operators/
// correct would be: DWORD thefirst = *(DWORD*) (Base + 0x1343794);
// same could be for the others, dunno how it originally was...
DWORD thesecond = (*(DWORD*)thefirst + 0);
DWORD thethird = (*(DWORD*)thesecond + 0x11c);
DWORD theresult = (*(DWORD*)thethird + 0x228);
is the same as:
Code:
DWORD theresult = *(DWORD*) ((*(DWORD*) ((**(DWORD**) (Base + 0x1343794)) + 0x11C)) + 0x228);
EDIT:
you may show us a screenshot of the cheatengine/whatever program you found this multilevel pointer, and we may assist you with creating correct code.