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 


what does the function CreateRemoteAPC used for in dbk32?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Source
View previous topic :: View next topic  
Author Message
greenzyzyzy
Newbie cheater
Reputation: 0

Joined: 26 Sep 2014
Posts: 23

PostPosted: Wed Oct 01, 2014 11:04 am    Post subject: what does the function CreateRemoteAPC used for in dbk32? Reply with quote

what does the function CreateRemoteAPC used for in dbk32.
Create a remote thread?
how to use?
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 458

Joined: 09 May 2003
Posts: 25287
Location: The netherlands

PostPosted: Wed Oct 01, 2014 2:46 pm    Post subject: Reply with quote

it lets you execute a piece of code from within another thread and then return to where that thread left off
The thread must not be sleeping, so you have to wake it

_________________
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
View user's profile Send private message MSN Messenger
greenzyzyzy
Newbie cheater
Reputation: 0

Joined: 26 Sep 2014
Posts: 23

PostPosted: Wed Oct 01, 2014 9:24 pm    Post subject: Reply with quote

Will add any functions to create remote thread in future ce versions?
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 458

Joined: 09 May 2003
Posts: 25287
Location: The netherlands

PostPosted: Thu Oct 02, 2014 4:29 am    Post subject: Reply with quote

You can already do that with createRemoteAPC (let it run CreateThread from inside the process)
Only issue is that you have to wake the thread somehow, or else wait till the game is running (usually when a game is tabbed out the thread is sleeping so thread creation will not return until the game is running again)

_________________
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
View user's profile Send private message MSN Messenger
greenzyzyzy
Newbie cheater
Reputation: 0

Joined: 26 Sep 2014
Posts: 23

PostPosted: Thu Oct 02, 2014 5:01 am    Post subject: Reply with quote

do you means.use CreateRemoteAPC to create a thread function.
and this function use CreateThread to create a new thread?
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 458

Joined: 09 May 2003
Posts: 25287
Location: The netherlands

PostPosted: Thu Oct 02, 2014 5:24 am    Post subject: Reply with quote

See createRemoteAPC as a "Change EIP/RIP on breakpoint" with such a breakpoint on every single instruction of the target
As soon as the target is executing a single instruction (actually as soon as a taskswitch happens into it) it will store the current state of the target and change EIP/RIP to the destination

Now, from inside that thread, you can load libraries, or create threads, or do whatever you want (even change memory) but make sure you do eventually come back because the thread is waiting to continue from where it left off

_________________
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
View user's profile Send private message MSN Messenger
greenzyzyzy
Newbie cheater
Reputation: 0

Joined: 26 Sep 2014
Posts: 23

PostPosted: Thu Oct 02, 2014 5:37 am    Post subject: Reply with quote

en,you means createRemoteAPC is a blocking funciton?
games will waiting the function call from createRemoteAPC,right?
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 458

Joined: 09 May 2003
Posts: 25287
Location: The netherlands

PostPosted: Thu Oct 02, 2014 5:58 am    Post subject: Reply with quote

yes, the thread you targeted with createRemoteAPC will be halted while the code inside the function executes (the other threads will keep executing)
_________________
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
View user's profile Send private message MSN Messenger
greenzyzyzy
Newbie cheater
Reputation: 0

Joined: 26 Sep 2014
Posts: 23

PostPosted: Thu Oct 02, 2014 6:19 am    Post subject: Reply with quote

if the called function run some minutes.the game will not run.
it is not a good idea.if i want to return from function immediately.
i can call CreateThread( ) in CreateRemoteApc( )?like you said
is it a good idea?
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 458

Joined: 09 May 2003
Posts: 25287
Location: The netherlands

PostPosted: Thu Oct 02, 2014 6:32 am    Post subject: Reply with quote

If you wish to run something that runs for a long time create a thread and then return yes
_________________
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
View user's profile Send private message MSN Messenger
greenzyzyzy
Newbie cheater
Reputation: 0

Joined: 26 Sep 2014
Posts: 23

PostPosted: Thu Oct 02, 2014 6:43 am    Post subject: Reply with quote

would you like to give me some example codes?
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 Source 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