public static IntPtr FindTeb(SafeMemoryHandle threadHandle) { return ThreadCore.NtQueryInformationThread(threadHandle).TebBaseAdress; }