Global hook for WH_GETMESSAGE hooks only to one application (VisualStudio)
问题 I have a C# application that calls an external DLL file for the hook process. The hook process simply 'hijacks' key presses, converting lowercase characters into uppercase. I thought it was working only to find out that only VisualStudio gets hooked successfully. Other applications like chrome and explorer does not seem to perform the hook process. Is there anything I missed from creating global hooks? Any help is greatly appreciated. dllmain.cpp file: // dllmain.cpp : Defines the entry point