How could I link that offset to that structure? So that I can do..
1 2 3
CharInfo ci;
ci.MyHP = 50000;
ci.MyMana = 50000;
Obviously that is not going to be the final code, but the point is it's a LOT easier than editing offset by offset when they're in the same location everytime anyway.
What your developing sounds quite interesting. I think I have added you to my MSN from a post you had a while ago. I maybe coming up with a fair amount of spare time in the future. I'd be interested in seeing what your developing.
DWORD = unsigned long and is 4 bytes. I was really just asking if I had the structure set up right (size wise) but thanks a lot for the help man I appreciate it. I'm looking at a source right now and don't see that method done (DLL is huge so I can't read through it all but I did a search through all files) so I'm trying to figure out how he did it lol
World of Warcraft - I do have one more question though. Would I be able to use a code to ReadProcessMemory on the CCHarInfo offset connected to the CharInfo structure and use a debugger with a breakpoint on ReadProcessMemory to spit out the data from that structure. I was thinking I would go through the code and try and put BYTE [size] on all of them and just read the data and narrow down what each offset does.
/*******************************************************
Bunch of code up here to fix process security issues
as well as scanning all of the live processes for WoW.exe
*******************************************************/
void ReadStructure (HANDLE hProcess)
{
CharInfo CI;
void *pointer = (void *)0xE29D28 ;
void *address;
DWORD buffer;
ReadProcessMemory (hProcess, (void *)pointer, &address, 8, &buffer);
while (1)
{
ReadProcessMemory (hProcess, (void *)address, &CI, sizeof (CI), &buffer);
}
return;
}
/*******************************************************
int main code to use the scan processes function to return
the WoW PID and plug it into the ReadStructure function
*******************************************************/
It's constantly saying "0" for EVERYTHING and I don't know why which is why I asked about the debugger. When I use OllyDbg I can see the data isn't all 0's - is there something wrong with my code? Enable private messaging so I can send you the whole code - I don't want to put it in public.
Thanks, I'll try it and let you know what the results end up being.
**EDIT**
Just tested and it's not working, do you happen to have WoW to test this with me? It works for another game, but having problems getting it to work with WoW for whatever reason.