Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Request: getThreadID fn

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
paul44
Expert Cheater
Reputation: 2

Joined: 20 Jul 2017
Posts: 206

PostPosted: Sat Mar 12, 2022 3:40 am    Post subject: Request: getThreadID fn Reply with quote

some history:
I'd like to refer to my ACU table here: [ https://fearlessrevolution.com/viewtopic.php?t=12725 ]. The table makes use of a 'antidebug' script (make by #Sunbeam ~ see appropriate link in OP), which basically finds the "offending" threadID and kills it... (see related video for details)
Apart from a few users - mostly related to hyperthreading, or so it seems - this works out pretty well/consistent. Untill...

I now have a user with Win 11, and it fails on him (he did the test on a Win10 laptop, where it runs fine). While i do not support Win11 explicitly, i'm bound to be confronted with it at some time soon ofc...

The request was on my list already, but no priority till now.
2 main reasons for request:
1. no longer need to parcour threadlist (Id changes with every gamelaunch)
2. possible full support for win 11 (and beyond)

Note: it is important that no 'breakpoint' action is involved here (eg: debug_getBreakpointList())


ps: antidebug routine: open Lua Startup script, and find 'KillAntiDebug()' at the bottom. the routine is called from the 2nd (~ red-colored) script...
ps2: did some reading and thought that:
local THREAD_ALL_ACCESS = 0x001FFFFF -- 0x001F03FF

would have been the culprit, but changing to above flag_value made no difference...

oh yeah: [ https://www.cheatengine.org/forum/viewtopic.php?p=5705307&sid=09abf95102eed231f6c7aff3c91ab03d ]
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites