"THREADSTACK0"地址的解決辦法
我尋找基址的時(shí)候 遇到了"THREADSTACK0"-0000980?
我們可以使用threadstack.exe來獲取THREADSTACK0,具體方法如下:

? ? ? ? Mem mem = new Mem();
? ? ? ? mem.OpenProcess("Terraria.exe");
? ? ? ? Process p = new Process();
? ? ? ? p.StartInfo.FileName = "cmd.exe";
? ? ? ? p.StartInfo.UseShellExecute = false;
? ? ? ? p.StartInfo.RedirectStandardInput = true;
? ? ? ? p.StartInfo.RedirectStandardOutput = true;
? ? ? ? p.StartInfo.RedirectStandardError = true;
? ? ? ? p.StartInfo.CreateNoWindow = true;
? ? ? ? p.StartInfo.Arguments = "/c " + "threadstack " + mem.GetProcIdFromName("Terraria.exe"); //命令是threadstack PID
? ? ? ? p.Start();
? ? ? ? string result = p.StandardOutput.ReadToEnd();
? ? ? ? p.WaitForExit();
? ? ? ? p.Close();
? ? ? ? Console.WriteLine(result.Split("=")[1].Split(":")[1].Split(":")[0].Replace("TID","").Replace(" ","")); //分割內(nèi)容

其實(shí)功能很簡單 只是通過cmd調(diào)用threadstack.exe來獲取所有線程堆棧的地址 然后通過分割獲取的內(nèi)容來獲取更準(zhǔn)確的地址。
threadstack.exe的下載地址是:https://goodfortune.lanzouy.com/iFamU15crhra
threadstack GitHub地址:https://github.com/makemek/cheatengine-threadstack-finder