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