Click here to Skip to main content
15,887,485 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi guys,

I have setup a global hook for WH_GETMESSAGE. And I am trying to detect whether its a touch event. I am able to do so for everything that's there in the screen except for Internet Explorer. By that, I mean I am unable to detect if somebody touches an open Internet Explorer Window. But the same works for Google Chrome. I have shared a portion of my hook proc code in the 'What you have tried' section:

What I have tried:

LRESULT CALLBACK GetMsgProc(int nCode, WPARAM wParam, LPARAM lParam)
{
	switch (lpMsg->message)
	{
	case WM_POINTERDOWN:
		UINT32 pointerId = GET_POINTERID_WPARAM(lpMsg->wParam);
		POINTER_INPUT_TYPE pointerType;
		GetPointerType(pointerId, &pointerType);

		if (pointerType == PT_TOUCH)
		{
		           MessageBox(NULL, TEXT("Its a touch"), TEXT("In a DLL"), MB_OK);

	
		}
		return CallNextHookEx(NULL, nCode, wParam, lParam);
	}
	return CallNextHookEx(NULL, nCode, wParam, lParam);
}
Posted
Updated 19-Oct-17 3:23am
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900