I'm using SetWindowsHookEx
to make my Caps Lock key bring up an application launcher that I'm writing, blocking the actual toggling of Caps Lock.
It works just fine on a local machine. However, when I try to use it on a machine that I have connected to via Remote Desktop, what happens is that the original machine processes it independently, meaning that as soon as I switch back to the connecting machine, my Caps Lock is toggled on.
Is there another way to handle it that will prevent this issue from arising, or is this a fundamental limitation of Remote Desktop?