LRESULT CALLBACK GetMsgProc(int nCode, WPARAM wParam, LPARAM lParam) { LPMSG lpMsg = (LPMSG)lParam; UINT32 pointerId = GET_POINTERID_WPARAM(lpMsg->wParam); switch (lpMsg->message) { case WM_POINTERDOWN: POINTER_INPUT_TYPE pointerType; GetPointerType(pointerId, &pointerType); if (pointerType == PT_TOUCH) OutputDebugString(TEXT("Hook: PointerDown Touch")); return CallNextHookEx(NULL, nCode, wParam, lParam); case WM_POINTERUP: POINTER_INPUT_TYPE pointerTypeUp; GetPointerType(pointerId, &pointerTypeUp); if (pointerTypeUp == PT_TOUCH) OutputDebugString(TEXT("Hook: PointerUp Touch")); return CallNextHookEx(NULL, nCode, wParam, lParam); } return CallNextHookEx(NULL, nCode, wParam, lParam); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)