Win32 API allows creating hook into system processes such as mouse hook (WH_MOUSE_LL), a hook is created with SetWindowsHookExA/W
functions.
The scenario is, a programme has installed a hook into Windows system with a local function; the programme does have a hook uninstall at the end, but, there's a case when the programme crashes and hook uninstall function is not called.
Does Windows know about dead hooks? and remove them automatically?
Hooks do pass around messages in a sequence: hook1 --> callnexthook --> hook2 --> callnexthook...
When the hook2 is dead, would it spoil the system?