Hey guys, maybe you can help me.
Im stuck with an error trying to read from WoW's memory and I have no idea why. VC# and WoW were both started as administrator and in 32-bit mode.
Code:
try {
StaticClientConnection = BaseAddress + (uint)Pointers.ObjectManager.CurMgrPointer;
CurrentTargetGUID = BaseAddress + (uint)Pointers.StaticPointers.CurrentTargetGUID;
ClientConnection = Magic.ReadUInt(StaticClientConnection + (uint)Pointers.ObjectManager.CurMgrOffset);
FirstObject = Magic.ReadUInt(ClientConnection + FirstObjectOffset);
} catch (Exception ex) {
setStatus("Exception while finding the first object");
log("Exception while finding 'FirstObject': (BaseAddress=" + BaseAddress + ") (StaticClientConnection=" + StaticClientConnection + ") (CurrentTargetGUID=" + CurrentTargetGUID + ") (ClientConnection=" + ClientConnection + ")");
}
And I'm getting the exception:
Code:
ReadUint64 failed
Exception while finding 'FirstObject': (BaseAddress=4194304) (StaticClientConnection=17276128) (CurrentTargetGUID=16582576) (ClientConnection=0)
Im using WoW Version 3.3.5 Build 12340 and these are my offsets:
Code:
internal enum General {
IsInGame = 0x00BD0792,
}
internal enum StaticPointers {
CurrentTargetGUID = 0x00BD07B0, // 3.3.5a 12340
LocalPlayerGUID = 0x00CA1238, // 3.3.5a 12340
}
internal enum ObjectManager {
CurMgrPointer = 0xC79CE0, // 3.3.5a 12340
CurMgrOffset = 0x2ED0, // 3.3.5a 12340
NextObject = 0x3C, // 3.3.5a 12340
FirstObject = 0xAC, // 3.3.5a 12340
LocalGUID = 0xC0 // 3.3.5a 12340
}
Any idea?