Freelancer Community Network
Reminder: Internet Explorer 6 or below are NOT supported.
HomeHome
ForumForum
WikiWiki
DownloadsDownloads
ForgeForge
Multiplayer Connection Tutorial
Collapse/Expand Random Image
Collapse/Expand Login
Username:

Password:

Remember me



Lost Password?

Register now!
Collapse/Expand Chat
Collapse/Expand Who's Online
47 user(s) are online (21 user(s) are browsing Forum)

Members: 0
Guests: 47

more...
Collapse/Expand Donations
Monthly costs: -30€
Income (ads): +4€
Donations (last month): +71€

Current balance: -25€
(last updated 09/2019)

Please make a donation if you want to help keeping The-Starport online:

Bitcoin address:
Thanks!
Collapse/Expand Links
Collapse/Expand Advertisement
There are currently 22 users playing Freelancer on 35 servers.
September. 19, 2019

Browsing this Thread:   1 Anonymous Users



 Bottom   Previous Topic   Next Topic  Register To Post



Adding new entries into the flserver window
Just can't stay away
Joined:
2008/5/9 17:27
Group:
Registered Users
FLServer Admins
Trusted Speciality Developers
Senior Members
Posts: 236
Offline
Ahoi,

I guess this could be useful for some of you. I've reversed it quite a while ago:

Open in new window


We're using this on HHC to display some thread queue information.

Code of the above screenshot:

Code:

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

Posted on: 2015/7/9 22:03
Top