Low level mouse hook and DirectX

后端 未结 1 1549
夕颜
夕颜 2021-01-02 09:54

I\'m building an application which needs to filter some mouse clicks system-wide. That is, I need to make the system ignore some mouse button clicks at special occasions.

相关标签:
1条回答
  • 2021-01-02 10:32

    You could use a method called API hooking - you override specific calls to library functions and give them your own behavior. There are many hooking libraries out there that simplify this task, the most used ones are:
    * Microsoft Detours
    * MadCodeHook
    * Deviare API Hook
    * API Hijack

    Also see Wikipedia example of hooking Direct3D.

    You just need to insert your hooking library into each process in the system but judging from your question I assume you've already achieved that.

    0 讨论(0)
提交回复
热议问题