Hook object Creation

c++ / delphi package - dll injection and api hooking
Post Reply
HechiceroWeb
Posts: 2
Joined: Tue Nov 09, 2004 1:04 pm

Hook object Creation

Post by HechiceroWeb »

Hi,
I want to hook an object creation. I want to hook code like...

Obj := TMyObj.Create;

I've been trying some stuff but I coud't make it work.
I would really appreciate any help.
And By the way, since this is my first post in this forum I take the oportunity to congratulate MAthias for such a wonderful library.

Esteban Calabria
madshi
Site Admin
Posts: 10764
Joined: Sun Mar 21, 2004 5:25 pm

Post by madshi »

It should work something like this:

HookCode(@TMyObj.Create, ...);
Post Reply