[Help] DLLs and complex addresses?
Posted: Wed Dec 22, 2010 10:44 pm
_
Discussions Regarding Memory Hacking Software
http://memoryhacking.com/forums/
memcpy( (LPVOID)&Bombs, (LPCVOID)&buffer, sizeof( UINT_PTR ) ); // Bombs is in the wrong position and sizeof() should be used instead of hardcoding numbers. NEVER HARDCODE NUMBERS.
UINT_PTR DeRef( UINT_PTR _uiptrPointer ) {
UINT_PTR uiptrRet;
if ( !::ReadProcessMemory( hProcess, reinterpret_cast<LPVOID>(_uiptrPointer), &uiptrRet, sizeof( uiptrRet ), NULL ) ) { return 0UL; }
return uiptrRet;
}
UINT_PTR DeRef( UINT_PTR _uiptrPointer ) {
return (*reinterpret_cast<UINT_PTR *>(_uiptrPointer));
}
[[0x00570074+0x0]+0x0]+0x8C
DefRef( DefRef( 0x00570074+0x0 )+0x0 )+0x8C
DWORD * pdwFinal = reinterpret_cast<DWORD *>(DefRef( DefRef( 0x00570074+0x0 )+0x0 )+0x8C);
(*pdwFinal) = 90; // Modify the value.