Unfortunately all that code does is register a hot key. It's just a windows API call that enables a program to receive global hot keys (e.g. CTRL+ALT+Z). It won't allow your program to receive all keyboard input.
There is a good essay on how to set up a global mouse hook over at the code project
In reply to Re^3: Reading keyboard input without focus
by lostjimmy
in thread Reading keyboard input without focus
by KovaaK
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |