SetWindowsHookEx in C#

前端 未结 7 1768
我寻月下人不归
我寻月下人不归 2020-11-29 04:45

I\'m trying to hook a 3rd party app so that I can draw to its screen. Drawing to the screen is easy, and I need no help with it, but I seem to be having issues with using

7条回答
  •  心在旅途
    2020-11-29 05:35

    The following suggests this won't work:

    "Global hooks are not supported in the .NET Framework. Except for the WH_KEYBOARD_LL low-level hook and the WH_MOUSE_LL low-level hook, you cannot implement global hooks in the Microsoft .NET Framework."

    From "How to set a Windows hook in Visual C# .NET"

提交回复
热议问题