| View previous topic :: View next topic |
| Author |
Message |
sonexa Newbie cheater
Reputation: 0
Joined: 19 Sep 2011 Posts: 16
|
Posted: Sat Jan 21, 2012 9:43 am Post subject: help with hardware breakpoint |
|
|
i'm newbie and, i need make a dll for change EAX at breakpoint in a adress, i tryied to code, but did not work
see
| Code: |
procedure Debug;
var
Event: DEBUG_EVENT;
Adress: Pointer;
Thread: THandle;
Context: TContext;
begin
Adress:=Pointer($004932A3);
Thread:=GetCurrentThread;
repeat
WaitForDebugEvent(Event,INFINITE);
if (Event.Exception.ExceptionRecord.ExceptionCode=EXCEPTION_SINGLE_STEP) then begin
if (Event.Exception.ExceptionRecord.ExceptionAddress=Adress) then begin
if (Thread=OpenThread(THREAD_ALL_ACCESS, false, Event.dwThreadId)) then begin
Context.ContextFlags:= CONTEXT_FULL;
GetThreadContext(Thread, Context);
Form1.Memo1.Lines.Add(inttostr(DWORD(Event.Exception.ExceptionRecord.ExceptionAddress)));
CloseHandle(Thread);
end;
end;
end;
ContinueDebugEvent(Event.dwProcessId, Event.dwThreadId, DBG_CONTINUE);
until
3=4;
end;
|
what is the problem? help me please guys c'mon
|
|
| Back to top |
|
 |
Dark Byte Site Admin
Reputation: 474
Joined: 09 May 2003 Posts: 25954 Location: The netherlands
|
Posted: Sat Jan 21, 2012 9:49 am Post subject: |
|
|
a dll may not use the Debug api
If you intent on using a dll try an exception handler instead
_________________
Tools give you results. Knowledge gives you control.
Like my help? Join me on Patreon so i can keep helping |
|
| Back to top |
|
 |
sonexa Newbie cheater
Reputation: 0
Joined: 19 Sep 2011 Posts: 16
|
Posted: Sat Jan 21, 2012 9:49 am Post subject: |
|
|
| where I can read about it?
|
|
| Back to top |
|
 |
Innovation Grandmaster Cheater
Reputation: 12
Joined: 14 Aug 2008 Posts: 617
|
|
| Back to top |
|
 |
|