C#, WinForm, WPF – Low level hook keyboard to write a simple keylogger

When I saw a video tutorial for writing a simple keylogger in VB.NET, I would like to write my own one in C# because I do not like the way which the author of this video uses timer to monitor which window is being now the foreground window. This simple keylogger bases on hooking low level keyboard with API SetWindowsHookEx to get key input. What makes me interesting is Avira Antivirus does not recognize my keylogger as malicious software ^^. I think when I implement to send the report to email or open port to send data back to me, Avira recognizes it immediately.
The keylogger has a low level hook keyboard engine class.

Continue reading C#, WinForm, WPF – Low level hook keyboard to write a simple keylogger