C# Mono - Low Level Keyboard Hook

后端 未结 2 1105
我寻月下人不归
我寻月下人不归 2021-01-19 09:07

I\'m using code that I found on the CodeProject.com for a low-level keyboard hook. The only problem is it uses external DLL calls that don\'t work in mono. I was wondering

2条回答
  •  太阳男子
    2021-01-19 09:42

    It's not possible to get this behavior using only .Net. You have to use a binary driver for each platform you run on (Windows, Linux, Mac OS). It might be possible to use only P/Invoke (detect what OS you are running on, call appropriate system libraries) so that you won't have to distribute any "extra" dll/so/dylib.

提交回复
热议问题