 |
Cheat Engine The Official Site of Cheat Engine
|
| View previous topic :: View next topic |
| Author |
Message |
BirdsEye Advanced Cheater
Reputation: 0
Joined: 05 Apr 2008 Posts: 94
|
Posted: Mon Feb 21, 2011 3:51 pm Post subject: [C] Hook Question |
|
|
| Hi guys, it's been a long time since I programmed and I'm trying new things for fun... I haven't had much experience with hooking API/functions and related topics, like finding start addresses and such (I'm sure there's a connection). I was wondering if it was possible to "copy" a function. By this, I don't mean copying the function's source code but rather having the original binary that does and call the function from that. Calling a function from another source but not actually have written it. For example, there's a program which hooks the Time/Date function in Notepad. Is it possible that if you keep the binary with the desired function (Notepad) and then each time I command, my program calls that function to do exactly as it does? (print the Time/Date)
|
|
| Back to top |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8587 Location: 127.0.0.1
|
|
| Back to top |
|
 |
BirdsEye Advanced Cheater
Reputation: 0
Joined: 05 Apr 2008 Posts: 94
|
Posted: Tue Feb 22, 2011 8:47 pm Post subject: |
|
|
Nice to see you back Wiccaan. I understand my question doesn't make much sense. I can't fully explain what I have in mind so this is the response I was looking for... I was only wondering if it was feasible to achieve this. In the end I'm trying to accomplish, as you perfectly stated, having two executables call each other.
However,
| Quote: | | But you are writing the new code inside the process you are targeting and altering the original code to redirect to yours. |
I'm just trying to redirect the original code to mine, nothing else, not modify it. In the end, I want to call a function from another library which isn't mine but belongs to another executable, however that function operates in my executable. [/quote]
|
|
| Back to top |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8587 Location: 127.0.0.1
|
|
| Back to top |
|
 |
|
|
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
|
|