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 


Simple function to place a Breakpoint (DELPHI)

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
broly7
Advanced Cheater
Reputation: 0

Joined: 13 Aug 2015
Posts: 60

PostPosted: Mon Nov 16, 2015 11:42 am    Post subject: Simple function to place a Breakpoint (DELPHI) Reply with quote

Hello.

Is there a simple function to place a Breakpoint to an address.
Within a dll?

So let's say i inject a dll to a process, now what's a proper function to place a Breakpoint and edit some register?

Thanks.
Back to top
View user's profile Send private message
STN
I post too much
Reputation: 43

Joined: 09 Nov 2005
Posts: 2676

PostPosted: Mon Nov 16, 2015 12:20 pm    Post subject: Reply with quote

Use MinHook.
_________________
Cheat Requests/Tables- Fearless Cheat Engine
https://fearlessrevolution.com
Back to top
View user's profile Send private message
broly7
Advanced Cheater
Reputation: 0

Joined: 13 Aug 2015
Posts: 60

PostPosted: Thu Nov 19, 2015 11:12 am    Post subject: Reply with quote

STN wrote:
Use MinHook.


Definetly not for Delphi...
not valid.
Back to top
View user's profile Send private message
hollow87
Cheater
Reputation: 0

Joined: 07 Feb 2015
Posts: 28

PostPosted: Thu Nov 19, 2015 1:59 pm    Post subject: Reply with quote

What about DebugBreak or DebugBreakProcess in Kernel32.dll also MinHook should work with delphi same way you can use a C dll from delphi
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Thu Nov 19, 2015 3:08 pm    Post subject: Reply with quote

hollow87 wrote:
What about DebugBreak or DebugBreakProcess in Kernel32.dll also MinHook should work with delphi same way you can use a C dll from delphi


I've explained to him in previous topics what API is needed to accomplish this, but doesn't seem like it did any good.

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
broly7
Advanced Cheater
Reputation: 0

Joined: 13 Aug 2015
Posts: 60

PostPosted: Thu Nov 19, 2015 3:22 pm    Post subject: Reply with quote

hollow87 wrote:
What about DebugBreak or DebugBreakProcess in Kernel32.dll also MinHook should work with delphi same way you can use a C dll from delphi

MinHook doesn't have the ability to place (NON MEMORY WRITE) Breakpoints as far as i know.

The best thing would be a Cheat engine lite library to use these hardware breakpoints feature Sad
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 471

Joined: 09 May 2003
Posts: 25814
Location: The netherlands

PostPosted: Thu Nov 19, 2015 3:25 pm    Post subject: Reply with quote

use SuspendThread, ResumeThread and setThreadContext to set a breakpoint in every currently running thread. (use toolhelp32 or similar to enumerate all the threads and openThread of course)

and capture the debug exception one way or another.
I find the addVectoredExceptionHandler function pretty useful for this

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
broly7
Advanced Cheater
Reputation: 0

Joined: 13 Aug 2015
Posts: 60

PostPosted: Thu Nov 19, 2015 3:27 pm    Post subject: Reply with quote

Dark Byte wrote:
use SuspendThread, ResumeThread and setThreadContext to set a breakpoint in every currently running thread. (use toolhelp32 or similar to enumerate all the threads and openThread of course)

and capture the debug exception one way or another.
I find the addVectoredExceptionHandler function pretty useful for this


Thank you.
Back to top
View user's profile Send private message
STN
I post too much
Reputation: 43

Joined: 09 Nov 2005
Posts: 2676

PostPosted: Fri Nov 20, 2015 2:03 am    Post subject: Reply with quote

broly7 wrote:

MinHook doesn't have the ability to place (NON MEMORY WRITE) Breakpoints as far as i know.

The best thing would be a Cheat engine lite library to use these hardware breakpoints feature Sad


Not for breakpoint but changing register's value.

_________________
Cheat Requests/Tables- Fearless Cheat Engine
https://fearlessrevolution.com
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