Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
210 views
in Technique[技术] by (71.8m points)

c# - WH_KEYBOARD Hook stops working when i use some apps

I have implemented WH_Keyboard hook it works fine am able to block certain keys from passing to other apps but however when i use certain apps like visual studio and notepad++ the hook stops working suddenly. But all other apps dont respond to keystrokes except for this code editors. Can anyone tell me how i can make sure that no other app can interfere or dispose my hook? . Before you suggest using WH_KEYBOARD_LL i dont want to use it since it doesnt work well together with rawinput.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...