Skip to main content

Crate flextrek

Crate flextrek 

Source

Modules§

get_explorer_location
get_explorer_selected_file
hotkey
listen_explorer_drag
独立线程安装 WH_MOUSE_LL 低级鼠标钩子(全局、免注入)左键按下时,若光标下窗口属于 explorer.exe(WindowFromPoint → GetWindowThreadProcessId → QueryFullProcessImageNameW 判断),记录起点按住移动超过系统拖拽阈值(SM_CXDRAG/SM_CYDRAG)即判定拖拽开始,通过 PostThreadMessageW 唤醒消息泵消息泵调用已有的 get_explorer_selected_file() 拿到被拖文件的完整路径,非空则回调DragHandle::unregister() 发 WM_QUIT 退出循环并 UnhookWindowsHookEx

Structs§

HotkeyHandle

Functions§

listen
listen_path
listen_selected_files