Hi all,
tl;dr - Is CreateRemoteThread() viable for injecting small snippets of code, or is that the reason of my random crashes?
I've been out of the botting scene since isxwow ceased existing, and just started looking at it again. I used to be on irc as junior|, and I'm sure some of you will remember me, and hopefully that I'm not completely clueless or asking for handouts
So, anyway, I've forgotten everything, but fired up IDA yesterday and now have a basic object manager up and running, and I'm able to run LUA code by injecting via remote threads. When just running LUA things seem to work fine, but when I'm trying to set a target by guid (calling function at 0x8CE477 in latest live) I get random crashes more often than not. I don't seem to remember having this problem back in WOTLK, so I'm wondering if anything's changed architecturally. I think I'm running into some threading issues, and I'm mainly wondering if you think this will work if I hook the mainthread (EndScene or such), or if I'm doing something else that's stupid?