Hi,
Welcome to Microsoft Q&A!
Whether you want to remap keyboard key via winapi in c++?
If so ,I suggest you could try to use LowLevelKeyboardProc callback function to remap keyboard key. The application installs a hook procedure that monitors low-level keyboard input events by specifying WH_KEYBOARD_LL when calling the SetWindowsHookEx function.
Best Regards,
Jeanine
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.