| View previous topic :: View next topic |
| Author |
Message |
Spooted How do I cheat?
Reputation: 0
Joined: 01 Dec 2012 Posts: 4
|
Posted: Sat Dec 01, 2012 11:25 am Post subject: [C++] Freeze thread |
|
|
I want to freeze a thread the Cheat Engine way and not using SuspendThread function.
Can anyone tell me how does Cheat Engine freezes the thread?
|
|
| Back to top |
|
 |
Dark Byte Site Admin
Reputation: 471
Joined: 09 May 2003 Posts: 25833 Location: The netherlands
|
Posted: Sat Dec 01, 2012 11:36 am Post subject: |
|
|
What do you mean with "freeze a thread"
Do you mean ce's rightclick on a thread and choosing "Freeze thread"? (That one uses SuspendThread)
Or do you mean one the debugger when a breaking breakpoint is hit and the state is shown waiting to continue?
If that, it depends on the debugger interface you use.
With the windows debugger interface, when a breakpoint is hit windows will freeze the whole application and then send a message to the debugger asking it what to do. (WaitForDebugEvent/ContinueDebugEvent)
With the veh debugger when an exception has hit, and it's a breakpoint type of exception it will send the data to cheat engine and then it'll wait for it to return with the data on how to continue using an event object
With the kernelmode debugger when the breakpoint interrupt gets fired it will put the data in a buffer, tell cheat engine that data is waiting, and then waits till cheat engine has handled it and told it how to continue.
So, in the first case it's basically just a suspendThread that windows does, in the other two cases the application itself enters into a wait state waiting for cheat engine specifically
If you meant something else, just ask, or look through ce's sourcecode
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
| Back to top |
|
 |
Spooted How do I cheat?
Reputation: 0
Joined: 01 Dec 2012 Posts: 4
|
Posted: Sat Dec 01, 2012 11:42 am Post subject: |
|
|
First of all, thanks for replying, it means a lot.
I meant the one in:
View -> ThreadList -> Freeze
Are you sure it uses SuspendThread? Because when I simply use SuspendThread it doesn't work like it does in Cheat Engine.
Thanks again for the fast reply, Spooted.
|
|
| Back to top |
|
 |
Dark Byte Site Admin
Reputation: 471
Joined: 09 May 2003 Posts: 25833 Location: The netherlands
|
|
| Back to top |
|
 |
Spooted How do I cheat?
Reputation: 0
Joined: 01 Dec 2012 Posts: 4
|
Posted: Sat Dec 01, 2012 1:07 pm Post subject: |
|
|
| Thank you very much.
|
|
| Back to top |
|
 |
|