美文网首页
windows hook

windows hook

作者: 金元宝加 | 来源:发表于2020-09-16 17:03 被阅读0次

#define KEY_DOWN(VK_NONAME) ((GetAsyncKeyState(VK_NONAME) & 0x8000) ? 1:0)

WNDPROC lpPrevWndFunc = NULL;

LRESULT CALLBACK WndProc2(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) {

  if (message == WM_TOUCH){

    TOUCHINPUT* ti = new TOUCHINPUT[LOWORD(wParam)];

    if (::GetTouchInputInfo((HTOUCHINPUT)lParam, wParam, ti, sizeof(TOUCHINPUT))) {

      ::CloseTouchInputHandle((HTOUCHINPUT)lParam);

    }

  }

  else if (message == WM_MOUSEMOVE) {

  /* TOUCHINPUT* ti = new TOUCHINPUT[LOWORD(wParam)];*

  }

  return CallWindowProc(lpPrevWndFunc, hWnd, message, wParam, lParam);

}

HWND pHandle = (HWND)whiteboard_frame_->winId();

相关文章

网友评论

      本文标题:windows hook

      本文链接:https://www.haomeiwen.com/subject/nfkhyktx.html