I noticed that my mousehook code fails to work when interacting with EA's Origin store. Basically when clicking inside of the window, it does not call the callback I registered with windows (using the SetWindowsHookEx
function). I tried with Steam and there are no problems there.
I am pretty certain that this is a part of some mechanism meant to prevent rogue malware from taking control of your computer to access account information. I'm curious as to how it is done. My guess is that I'll need to set up some driver magic to circumvent this from a layer closer to the hardware?
Disclaimer: I am of course not attempting to create any malicious software, I am just building powerful tools for the purposes of software automation. Obviously, with great power comes great responsibility.
It's possible that they have their own hook that deliberately doesn't call CallNextHookEx
for events within their window.