displaying a message when the user taps a key
问题 The following snippet is meant to display the message when the user types a key. Even when the focus is not on the application. But there seems to be a problem with the following code. It doesn't call the function registered in the hook-chain with the windows. I guess the problem is with HINSTANCE hInst . How should I modify the below code so that I am able to see the message as the user taps a key. // Global Variables static HHOOK handleKeyboardHook = NULL; HINSTANCE hInst = NULL; void