LParam COPYDATASTRUCT * pCDS=(COPYDATASTRUCT *);
TRACE (" # % X # ", pCDS - & gt; LpData);
TRACE (" # % X # ", pCDS - & gt; CbData);
If (pCDS - & gt; CbData=WM_COPYDATA https://bbs.csdn.net/topics/={
TRACE (" WM_COPYDATA \ r \ n ");
}
LParam CWPSTRUCT * pMsg=(CWPSTRUCT *);
TRACE (" @ % @ "X, pMsg - & gt; Message);
I print a log found no catch 4 a the representative WM_COPYDATA WM code
And to give some help
Most other VM can catch
CodePudding user response:
100 is not so good to take awayCodePudding user response:
Qq1250357188 solution to this problem I give 50 yuan a red envelopeCodePudding user response:
Whether to judge the wrong logo? CbData dwData buffer size is often used to distinguish between ID
LRESULT a CALLBACK CallWndProc (int nCode, WPARAM WPARAM, LPARAM LPARAM)
{
LParam CWPSTRUCT * pMsg=(CWPSTRUCT *);
If (pMsg - & gt; Message==WM_COPYDATA)
{
COPYDATASTRUCT * pCds=(COPYDATASTRUCT *) pMsg - & gt; LParam;
TRACE (_T (" WM_COPYDATA hWnd=% p dwData=https://bbs.csdn.net/topics/%u cbData=% u, lpData=% p/n "),
PMsg - & gt; HWND pCds - & gt; DwData pCds - & gt; CbData pCds - & gt; LpData);
If (pCds - & gt; DwData IDXXXXX)
=https://bbs.csdn.net/topics/={
LPBYTE pData=https://bbs.csdn.net/topics/(pCds LPBYTE) -> lpData.
For (DWORD I=0; PData & amp; & i{
TRACE (_T (" % 02 x "), pData [I]);
}
}
}
Return CallNextHookEx (gHook, nCode wParam, lParam);
}
CodePudding user response:
This is just my print to capture the VM code! There is no found after printing 4 a4 a is WM_COPYDATA
CodePudding user response:
SendMessage (WM_COPYDATA) check it out!CodePudding user response:
Try the spy++ grab the newsCodePudding user response:
MFC itself if hair WM_COPYDATA can catch but the game of catch! Is now a global hook!!!!!Unknown sleep and complete
CodePudding user response:
Is the most terrible of spy++ can catch! Don't know whyCodePudding user response:
Who may hook chain without CallNextHookEx (gHook, nCode wParam, lParam); ??CodePudding user response:
There are! Note the difference between the MFC I construct a vm_copydata message can be caught!The inside of the game fantasy westward journey spy++ vm_copydata news can I can't catch caught
CodePudding user response:
Is now a global hook!!!!!Maybe you need to keep the Settings of the hook, set tens of milliseconds just setwindowshookex once, because before get QQ login password button is need like this
CodePudding user response:
Why is that? There is no failure in the hook! Let me tryCodePudding user response:
Useless!!!!!Please note this: : : :
Myself in the program structure vm_copydata messages can be caught!
The inside of the game fantasy westward journey vm_copydata message spy++ can catch but I can't catch me
CodePudding user response:
The CallNextHookEx function passes The hook information to The next hook procedure in The current hook chain. A hook procedure can call this function either before or after processing the hook information.Try after
CodePudding user response:
For example bai!!!!!!!!!!CodePudding user response:
Is to:LRESET ret=CallNextHookEx (gHook, nCode wParam, lParam);
Your code;
return ret;
CodePudding user response:
No use! After I elevate privileges can catch their program copydata but can't catch the game formCodePudding user response:
Check the game form hWnd