NooBpluSS Cheater
Reputation: 0
Joined: 24 Jun 2007 Posts: 37
|
Posted: Tue Sep 29, 2009 9:26 am Post subject: Help DebugActiveProcess :x |
|
|
Hi again, i have another error...
i do a memory breakpoint using CreateProcess (if anyone is interested, talk to me).
But i wanna use DebugActiveProcess.
When i use CreateProcess (debug_only_this_process, ps: i get process_information), i use 'Create_process_debug_event' to get the context, set bp dr0/dr7 and get excpetion_single_step for make anything.
| Code: |
Create_process_debug_event:
Begin
ctx.ContextFlags := context_debug_registers;
GetThreadContext( PROCESSINFORMATION.hThread, ctx);
// any
SetThreadContext( PROCESSINFORMATION.hThread, ctx);
end;
|
*Processinformation.hThread is the correct thread.
But if i use DebugActiveProcess, i havent process_information, and if i set dr0/dr7 nothing happens.
How i use DebugActiveProcess and can set a breakpoint on all threads or correct thread?
tks! _________________
Newbie cheater ;] |
|