3 ms·
This is a very naive implementation. Better off using a keyboard hook or GetAsyncKeyState as someone suggested. And if you want to write a 'real' implementati
by burrows 16y ago
This is a very naive implementation.
Better off using a keyboard hook or GetAsyncKeyState as someone suggested.
And if you want to write a 'real' implementation, you write a keyboard filter driver. Or hook NtUserGetAsyncKeyState.
- 16s 16y agoIt does use GetAsyncKeyState. Did you not read the source code? It works extremely well too (with regard to accuracy). Try the pre-compiled binary. // From the source code: ks = GetAsyncKeyState( kiter->first );
- burrows 16y agoMy apologies. I hadn't mean to suggest GAKS. However there are many known problems with implementations using GAKS. Bad implementations make heavy use of CPU and it's easily detectable. The methods I suggested later in my post are far superior. It also very wrong to claim that _this_ is how keyloggers are implemented. This technique has been deprecated some time ago.