Search found 9 matches

by klumsy
Sat Feb 18, 2006 11:34 pm
Forum: madCodeHook
Topic: A few general questions.
Replies: 15
Views: 12045

so are you saying that you can hook CLR method calls? like say a call to your own class, or maybe a dotnetframework class?
if so , then i'm very interested.

Karl
by klumsy
Thu Oct 21, 2004 3:56 am
Forum: madCodeHook
Topic: hooking and dynamically loaded DLLS
Replies: 17
Views: 14049

hooking and dynamically loaded DLLS

i haven't tested this, but just want to get my head around it, make sure i'm on the right track if i load an application and hook a certian windows API call, what happens when that application loads other DLLS later dynamically with LoadLibrary and those DLLs call the windows API i wish to hook, is ...
by klumsy
Tue Aug 10, 2004 12:41 am
Forum: madCodeHook
Topic: dealing with pointers to methods, and calling C++ functions
Replies: 1
Views: 7710

dealing with pointers to methods, and calling C++ functions

i've been working lately on making different algorithms for calling C++ methods using pointers and all manner of things, dealing with normal methods and virtual methods.. just wanna post some of my examples here, and see if anybody likes them (though they are inline assembler examples that can easil...
by klumsy
Fri Aug 06, 2004 11:07 pm
Forum: madCodeHook
Topic: Hooking C++ member function
Replies: 14
Views: 29753

ok here are some snippets PVOID doitptr; PVOID hookdoitptr; PVOID NextHook; ... //declaration of method function that will be hooked long Test::DoIt(long x) { ... } //code to get pointers needed for hooking _asm { mov eax,DWORD PTR Test::DoIt; mov doitptr,eax } _asm { mov eax,DWORD PTR TestHook::Hoo...
by klumsy
Fri Aug 06, 2004 8:18 am
Forum: madCodeHook
Topic: Hooking C++ member function
Replies: 14
Views: 29753

i noticed 2 things.. madcodehook doesn't work (doesn't successfully hook) with debug builds (whether plain C functions, static methods, non static methods, or virtual(and non static) methods in msvc++ 7. i have the solution working for non static methods, but can't yet hook virtual ones (i can ge tt...
by klumsy
Fri Aug 06, 2004 4:30 am
Forum: madCodeHook
Topic: Hooking C++ member function
Replies: 14
Views: 29753

man i love dephi, i wish this project i am working on now was in delphi :) on the delphi front hooking "@TSomeClass.SomeMethod" would hook every call that that method of every instance right? as for C++, i'm working on a framework now to do it, (we can already do it for static methods), bu...
by klumsy
Thu Aug 05, 2004 2:53 am
Forum: madCodeHook
Topic: Hooking C++ member function
Replies: 14
Views: 29753

yeah in C++, method pointers (in contrast to function pointers), aren't 4 bytes, but sometimes 8 or 12 bytes long, and seem to be quite weird, containing a pointer to the virtualmethod table, and also the offsets or something, but i'm sure there must be a way we can wrap up this functionality someho...
by klumsy
Sat Jul 31, 2004 12:48 pm
Forum: madCodeHook
Topic: Hooking C++ member function
Replies: 14
Views: 29753

i see that - looks like a useful technique
my main question is how do i get a pointer to the address of the C++ method?
by klumsy
Tue Jul 27, 2004 2:06 pm
Forum: madCodeHook
Topic: Hooking C++ member function
Replies: 14
Views: 29753

i'm having a similar problem it just seems i can't seem to get a pointer to a function from a nonstatic method of a class instance i.e PVOID mypvoid = (PVOID) myclassinstance.mymethod; just doesn't work neither does PVOID mypvoid = (PVOID) &myclassinstance.mymethod; any clues from this, from rea...