WH_GETMESSAGE
How to get the current news message types, as well as the message contained in the parameter,
If I want to put the WM_LBUTTONDOWN intercepted and modified into VK_A do,
CodePudding user response:
In the reference MSDN98 own SPY++ source code fragment?
MSDN98_1. ISO http://pan.baidu.com/s/1dDF41ix, MSDN98_2. ISO http://pan.baidu.com/s/1bnGo0Vl
CodePudding user response:
LRESULT a CALLBACK GetMsgProc (int nCode, WPARAM WPARAM, LPARAM LPARAM)
{
.
If (WM_LBUTTONDOWN==(lParam) (MSG *) - & gt; Message)
{
(lParam) (MSG *) - & gt; Message=WM_KEYDOWN;
(lParam) (MSG *) - & gt; WParam=0 x41//A key
}
.
Return CallNextHookEx (... );
}
CodePudding user response: