Adding new entries into the flserver window
Locked
FLHook Development
-
Ahoi,
I guess this could be useful for some of you. I’ve reversed it quite a while ago:
We’re using this on HHC to display some thread queue information.
Code of the above screenshot:
void MFCInit() { int iPtr = (*(int*)0x4277EC)+256+32; HkFLServerInsertCol(2, "Max", 0, 42, 2); SendMessageW(*(HWND *)(iPtr), 0x101E, 0, 100); SendMessageW(*(HWND *)(iPtr), 0x101E, 1, 50); HkFLServerSetItem(0,2,1,"0"); HkFLServerInsertItem(1,6,"AC Inbound Queue"); HkFLServerSetItem(6,1,1,"0"); HkFLServerSetItem(6,2,1,"0"); HkFLServerInsertItem(1,7,"AC Outbound Queue"); HkFLServerSetItem(7,1,1,"0"); HkFLServerSetItem(7,2,1,"0"); } //Item in der FLServer CListCtrl inserten void HkFLServerInsertItem(uint nMask, int nItem, LPCSTR lpszItem) { int iPtr = (*(int*)0x4277EC)+256; __asm { push 0 push 0 push 0 push 0 push lpszItem push nItem push nMask mov ecx, iPtr mov edx, 0x419308 call edx } } //Item in der FLServer CListCtrl updaten void HkFLServerSetItem(int nItem, int nSubItem, uint nMask, LPCSTR lpszItem) { int iPtr = (*(int*)0x4277EC)+256; __asm { push 0 push 0 push 0 push 0 push lpszItem push nMask push nSubItem push nItem mov ecx, iPtr mov edx, 0x4192FC call edx } } void HkFLServerInsertCol(int nCol, LPCSTR lpszColumnHeading, int nFormat, int nWidth, int nSubItem) { int iPtr = (*(int*)0x4277EC)+256; __asm { push nSubItem push nWidth push nFormat push lpszColumnHeading push nCol mov ecx, iPtr mov edx, 0x41930E call edx } }
Cheers,
Crazy