Im wondering how its done, I notice in directx hooking examples, they usually have the offsets defined as constants. how do they calculate these offsets?
Im wondering how its done, I notice in directx hooking examples, they usually have the offsets defined as constants. how do they calculate these offsets?
The COM specification contains a place that says that the offset is sizeof(function pointer) * function ordinal bytes.
The Microsoft C++ compiler "happens" to use the same layout for the vtable.
All the buzzt!
CornedBee
"There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
- Flon's Law
figured it out, thanks alot .
Last edited by X PaYnE X; 10-28-2006 at 11:34 AM.