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 


[Help] Executing A Function In A New Process

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
dnsi0
I post too much
Reputation: 0

Joined: 04 Jan 2007
Posts: 2674

PostPosted: Fri Jun 12, 2009 7:18 pm    Post subject: [Help] Executing A Function In A New Process Reply with quote

I was wondering if it was possible to execute the same process except not running anything but instead executing a function in the copied process.

Here's a crappy diagram:

[Main Process] -> CreateProcessA
[Main Process] [Child Process (No Execution)]
[Main Process] -> CreateRemoteThread
[Main Process] [Child Process With A Thread Running That Was Just Executed]
Back to top
View user's profile Send private message
sponge
I'm a spammer
Reputation: 1

Joined: 07 Nov 2006
Posts: 6009

PostPosted: Fri Jun 12, 2009 7:38 pm    Post subject: Reply with quote

Call CreateProcessA() with the CREATE_SUSPENDED flag.
_________________
Back to top
View user's profile Send private message
dnsi0
I post too much
Reputation: 0

Joined: 04 Jan 2007
Posts: 2674

PostPosted: Sat Jun 13, 2009 1:12 pm    Post subject: Reply with quote

sponge wrote:
Call CreateProcessA() with the CREATE_SUSPENDED flag.


Yea but then the process isn't setup correctly to handle everything. Like all the vairables pointing to the APIs would be wrong.

Is it possible to attach a debugger to your self? DebugActiveProcess(GetCurrentProcessID) isn't working.

If this works, then I don't need to execute another process.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming 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