thebillkidy,
i just want to know how i read memory on a special offset.
tempOlit:
Code:
template<typename _ret_t> _ret_t ReadMemory(char Caption[], int long Address)
{
DWORD PROC_ID;
HANDLE PROC_HANDLE;
_ret_t ret;
GetWindowThreadProcessId(FindWindow(NULL, (LPCTSTR)Caption), &PROC_ID);
PROC_HANDLE = OpenProcess(PROCESS_ALL_ACCESS, false, PROC_ID);
ReadProcessMemory(PROC_HANDLE, (void*)Address, &ret, sizeof(_ret_t), NULL);
CloseHandle(PROC_HANDLE);
return Value;
}
usage:
Code:
std::cout << "Byte at 0x403000: 0x" << std::hex << (int)ReadMemory<unsigned char>("test", 0x403000) << std::endl;
return:
Code:
Byte at 0x403000: 0x58
You should be ale to come up with your own WRITEPROCESSMEMORY TEMPLATE NOW.... :P
If you can't figure out how to read multiple bytes with this template go read a c++ book. I'm tired of helping people that don't listen...
You need to go learn math first.
-Bit_Hacker