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 


Yet Another Question... Debugging Process That just started

 
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: Sat Jun 13, 2009 2:40 pm    Post subject: Yet Another Question... Debugging Process That just started Reply with quote

If you have a process that is already running, Using DebugActiveProcess would be good. But I tried using createprocess with the DEBUG_PROCESS creation flag but it gave me a load of exceptions that If I passed it was un handled, it crashes. If I pass it as continue, the program does nothing and just sits there.

CreateProcess(APPPATH,nil, nil, nil,False,
DEBUG_PROCESS,
nil, nil, StartInfo, ProcInfo);
ContinueDebugEvent(ProcInfo.dwProcessId,ProcInfo.dwThreadId,DBG_CONTINUE);
WaitForDebugEvent(DebugEvent,INFINITE);

Omg... How did my rep get to 11... >.>
Back to top
View user's profile Send private message
&Vage
Grandmaster Cheater Supreme
Reputation: 0

Joined: 25 Jul 2008
Posts: 1053

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

Are you sure you handled it correctly?
Back to top
View user's profile Send private message
dnsi0
I post too much
Reputation: 0

Joined: 04 Jan 2007
Posts: 2674

PostPosted: Sun Jun 14, 2009 2:22 pm    Post subject: Reply with quote

: wrote:
Are you sure you handled it correctly?


Actually I came up with a better idea. Ill make the process I launched debug my program I launched it with.
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