i have wrote an admin toole for alteriwnet mw2 and use the sendmessage api to send commands to the console window.
i saw the sendcommand offset in a threat and gave the c code follow:

void (__cdecl*SendCommandToConsole)(int a1,inta2,char *cvar)=(void (__cdecl*)(int,int,char *))0x00000;

0x00000 is the offset

the question is if anyone can tell me how can i use and recode it in delphi?