Avatar of teste123
teste123
 asked on

Hooking

Hello !!!

Can someone show me a source or explain me how to hook a Function ? For example: I want to hook the RegOpenKeyEx in all the system wide. How to do ? (without madCollection)

Thanx a lot !!!
Delphi

Avatar of undefined
Last Comment
Madshi

8/22/2022 - Mon
DaFox

Hi.

> without madCollection

lol


That's a very complicated subject. You have to change the import tables of all running modules (+ the modules that are starting after "you set up the hook").
I'd recommend to use a component like madCollection (no, I do not get money!), because coding this is very time-intensive and has to be absolutely bug-free (if you don't want to annoy your customers with blue screens).

Sorry for my bad answer! I guess that's what you didn't want to hear.

Markus
teste123

ASKER
Yes, it wanst what i want to listen *cryes a lot* because i am a poor guy. I gain only R$400,00 here in Brazil programming. But now because of the war, 1 dollar = almost R$4,00 , and i dont have that mutch money. Thats why. I want something free... Madshi, are you reading ? I found a BUG in madCodeHook when hooking the system_wide. May you register me plzzzz ? Then i eport you the bug and give you my program when i finish it for free. Do something plzzz this program will be very important. I promess i ill put many thanx to you.. I do anything (but pay i cant)... *cryes a lot* or just show me another lib that does that. I will be very happy. Thanks a lot
ASKER CERTIFIED SOLUTION
Madshi

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
teste123

ASKER
Ahhh thanx madshi. My program will be totally free =P
Yes, the beta version corrected the bug !

Ps.: Madshi, you are very good with delphi. May i know your age ?

Ty =P
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy
teste123

ASKER
Madshi.. one more question.
How are you going to know if someone is using your lib but in an illegal using ?
Madshi

>> My program will be totally free

My components were always free for non-commercial usage.

>> May i know your age ?

30

>> How are you going to know if someone is using your lib but in an illegal using ?

Telepathy. I feel if someone uses my stuff illegally...  (just joking, of course :-)