I use RegisterHotkey to bind a key combination to a function in my program, and that works just fine, even when I don't have focus on my program.
However, I also need to capture WM_KEYUP, and that seems to only work if my program has focus.
Is there a good way to capture the WM_KEYUP even when another program has focus?
I see a lot of examples that catches WM_HOTKEY (which works fine when the key is pressed), but I haven't found any for releasing a hotkey when out of focus.