thnx again )
thnx again )
Zewt, in order to not have external dlls needed you need to tweak few options in visual studio - in project properties find General->Use of MFC and switch it to "Use Standard Windows Libraries", then go to C/C++->Code Generation->Runtime Library and switch it to Multi-threaded.
You can always check if the exe is going to require more dlls with Dependency Walker (depends.exe) Home Page
If there are no msvsomethign.dll required as imports, only user/kernel/etc then you are good to go.
So now i get tons of build errors when i switch to just /MT multithreaded![]()
Last edited by zewt; 05-21-2012 at 05:56 PM.
Ah fixed! Fixed! Updated DL link.
wow thank you
I'm also interested in the source code if you don't mind. I don't see it in the first post though, where do you have it open sourced?
Thanks.
thanks for the source.
I have a question though about the offset you give. How do you find it. In CE I search for my hp value as a float, and I find max hp and current hp variables. Say the current hp address is 1EB83914, how do you get the static offset 0xFE31CC? Is it the current hp address minus the base address?
Also in your code what is the point of(I don't get why you are adding 0x18, 0xC8, etc...)ReadProcessMemory(handle, (LPCVOID)(baseAddr+staticOffset), &value, sizeof(DWORD), &numBytesRead);
value+=0x18;
ReadProcessMemory(handle, (LPCVOID)value, &value, sizeof(DWORD), &numBytesRead);
value+=0xC8;
ReadProcessMemory(handle, (LPCVOID)value, &value, sizeof(DWORD), &numBytesRead);
value+=0xC;
ReadProcessMemory(handle, (LPCVOID)value, &value, sizeof(DWORD), &numBytesRead);
value+=0x294;
ReadProcessMemory(handle, (LPCVOID)value, &value, sizeof(DWORD), &numBytesRead);
value+=0x38;
ReadProcessMemory(handle, (LPCVOID)value, &hp, sizeof(DWORD), &numBytesRead);
Shouldn't it just beReadProcessMemory(handle, (LPCVOID)value, &hp, sizeof(DWORD), &numBytesRead);