Originally Posted by
bierstud
Well then I must be doing something wrong. Those are the offsets I had been using.
Perhaps someone can point out my issue? I'll try and include the relevant code below.
Inside loop while reading objects in:
...
"name" contains the address to read to get the unit name
Code:
void DisplayUnitName(object *unit)
{
DWORD nAddr;
DWORD nAddr2;
char name[40];
ReadProcessMemory(toWin, (LPVOID)(unit->wowAddr + 0x9B0), &nAddr, sizeof(nAddr), NULL);
ReadProcessMemory(toWin, (LPVOID)(nAddr + 0x03C), &nAddr2, sizeof(nAddr2), NULL);
ReadProcessMemory(toWin, (LPVOID)nAddr2 , &name, sizeof(name), NULL);
cout << endl << "Unit 0x" << hex << uppercase << unit->guid << " name: " << name << dec << endl;
}