or u can get it this way but u have to update the offset each patch
Code:
Process.EnterDebugMode();
hProcess = Memory.OpenProcess(Memory.GetProcessIdByProcessName("wow.exe"));
WoWObjectManager ObjectManager = new WoWObjectManager();
ObjectManager.CodeAddress = dwFindPattern(hProcess, 0x400000, 0x600000,
"EB 02 33 C0 8B 0D 00 00 00 00 64 8B 15 00 00 00 00 8B 34 8A 8B 0D 00 00 00 00 89 81 00 00 00 00",
"xxxxxx????xxx????xxxxx????xx????");
if (ObjectManager.CodeAddress == uint.MaxValue)
throw new Exception("Could not find game routine from which we get the g_clientConnection pointer.");
ObjectManager.g_clientConnection = Memory.ReadUInt(hProcess, (ObjectManager.CodeAddress + 0x16));
ObjectManager.s_curMgr = Memory.ReadUInt(hProcess, (ObjectManager.g_clientConnection) + 0x285C);