Intercepting keyboard input

This is a discussion on Intercepting keyboard input within the Windows Programming forums, part of the Platform Specific Boards category; I was wondering, how is it possible to intercept keyboard input no matter what program is running? Reason being is ...

Intercepting keyboard input

I was wondering, how is it possible to intercept keyboard input no matter what program is running? Reason being is that I was thinking of writing myself a background process that would intercept keyboard input and execute system commands based on it, such as adding the unix style "CTRL+D" to shutdown a the currently running program, and adding shortcuts so that I could type "CTRL+M" if I wanted to execute Morrowind?