I need some help-

1) Is there any way of catching keys (like the keypress event) but catch them when the program isn't the active window (like a key logger).

2) Read info from the registry e.g HKEY_LOCAL_MACHINE/network/user

THANX