c++
文章平均质量分 50
巴特狐
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
全局钩子Hook
1)下钩HHOOK g_hook = NULL; g_hook = SetWindowsHookEx(//WH_MOUSE//设置鼠标钩子 WH_MOUSE_LL//设置键盘钩子 WH_KEYBOARD_LL , MessageBoxProc, GetModuleHandle(NULL), NULL);2)卸钩if(g_hook) UnhookWindowsHookEx(g_hook);//卸载HOOk函数3)钩子函数LRESULT...原创 2021-07-31 03:04:20 · 780 阅读 · 0 评论 -
通过屏幕坐标获取最底层窗口句柄
HWND GetChildMost(const POINT& screen_point){ HWND hwnd = WindowFromPoint(screen_point); if (hwnd == NULL) return NULL; HWND parent = ::GetParent(hwnd); if (parent == NULL) return NULL; HWND hWndChild = NULL; ...原创 2021-07-31 02:03:47 · 383 阅读 · 0 评论
分享