Getting a CEqObj from a IObjRW
Locked
FLHook Development
-
I’m sure some of you have seen the IObjRW structs used in some common.dll functions. I was disappointed at how there didn’t seem to be a way to get any useful information out of them.
I decided to investigate it a little tonight, and after some digging about I figured out how to get a CEqObj from one, which is much more useful (just take a look at line 2047 in FLCoreCommon.h). Here’s the code.
__declspec(naked) CEqObj * __stdcall HkGetEqObjFromObjRW(struct IObjRW *objRW) { __asm { push ecx push edx mov ecx, [esp+12] mov edx, [ecx] call dword ptr[edx+0x150] pop edx pop ecx ret 4 } }
-
For the un-enlightend folk amongst us, what is this and what is its function LOL
-
Nice, thx! Let’s just hope this gets not deleted, like my topic about how to send chat via clienthooking was.
Edit: I was told it has been moved to private section - well at least I know now ^^