dnsi0 I post too much
Reputation: 0
Joined: 04 Jan 2007 Posts: 2674
|
Posted: Sat Jun 13, 2009 2:40 pm Post subject: Yet Another Question... Debugging Process That just started |
|
|
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... >.>
|
|