Topic: How correctly to remove WH_CALLWNDPROCRET
I cause SetWindowsHookEx (WH_CALLWNDPROCRET, MyHookProc, 0, ThreadID) where ThreadID is not current flow. I do the affairs, then I remove . But after removal there are calls MyHookProc, and my data and itself MyHookProc any more , and application falls. There are methods to win a trouble, or setting WH_CALLWNDPROCRET on other flow except leaking are illegal?