[Winapi]-Ciekawostka o hookach

TDK8GB

Użytkownik
Dołączył
Maj 17, 2013
Posty
105
Cześć!
Dzisiaj przeglądałem blog msdn i znalazłem to:

http://blogs.msdn.com/b/alejacma/archive/2010/10/14/global-hooks-getting-lost-on-windows-7.aspx

Kod:
Their application had global hooks to monitor for both keyboard and mouse input. [B]On Windows 7, and under high CPU usage, those hooks were getting lost[/B]. They tried several things to solve the issue, without success: adjust registry setting "Control Panel\Desktop\LowLevelKeyboardProc" to 10000 (10sec), restart the hooks every X minutes (with UnhookWindowsHookEx and SetWindowsHookEx), etc. At the end, they had to restart the app to reactivate the hooks.

1.Czy to prawda co oni piszą?
Napisali jeszcze żeby stosować "Raw Input". Czy jest sens używać w keyloggerze?
 
Do góry Bottom