The SetWindowsHook function is obsolete. It is provided only for compatibility with 16-bit versions of Windows. Win32-based applications should use the SetWindowsHookEx function.
Hooks Overview, Hook Functions