Is it possible using the global keyboard hook (SetWindowsHookEx, WH_KEYBOARD_LL) to change the key it receives (in this case, change it so that it is the modified version of this key that reaches all recipients)?
Tried to do this with the following code, but it didn't work out.
LRESULT CALLBACK llkp(int nCode, WPARAM wParam, LPARAM lParam){ if(nCode==0 && ((PKBDLLHOOKSTRUCT)lParam)->vkCode==VK_SPACE) ((PKBDLLHOOKSTRUCT)lParam)->vkCode=0x5A; //меняем VK_SPACE на клавишу "Z" return CallNextHookEx(hh,nCode,wParam,lParam); } I am ready to pay for the decision.