I have written a global windows hook DLL to callback to my dialog and tell me when the capslock key is toggled. When I first start it, it works. I am testing it by giving different windows focus. At some point my callback is not being called. What can cause the hook procedure to stop running?