SetWindowsHookEx in C#

前端 未结 7 1655
我寻月下人不归
我寻月下人不归 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:40

    I believe you need to P/Invoke GetModuleHandle and use the handle it returns for the third parameter of SetWindowsHookEx. I also believe 0 is correct for the fourth parameter, as you don't want to hook any one specific thread in the third-party application.

    If this doesn't work for you, SetWindowsHookEx on MSDN might point you in the right direction.

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