SendMessage字符串
先向目标程序A.EXE注入DLL,DLL::SetWindowsHookExA(WH_CALLWNDPROC,&GameMessage,FSKH,tID);
LRESULT CALLBACK GameMessage(int nCode, WPARAM wParam, LPARAM lParam)
{
if (nCode == HC_ACTION)
{
switch(((PCWPSTRUCT)lParam)->message)
{
case WM_CONN:
char Buf[MAX_PATH]={0};
sprintf(Buf,"aaaaaa [SendMessage]wParam=%X lParam=%X dd=%s",wParam,lParam,(char*)lParam);
OutputDebugString(Buf);
break;
}
}
return CallNextHookEx(0,nCode,wParam,lParam);
}
我想实现从一个VB程序SENDMESSAGE字符串到目标程序A,然后DLL会拦截SENDMESSAGE消息。
我要如何才能获得这个字符串?