I have a program which uses SetWindowsHookEx() to install a WH_GETMESSAGE hook. I set the thread id to 0 so that the hook is loaded in every process. My problem is that my hook procedure is being called for 16-bit processes, which crash everything.
What should I do to make my SetWindowsHookEx() work ignoring the running 16-bit applications?
(Other than rewriting my hook DLL in 16-bit...)