I put this small program for another program B of the child starts,
A. no window, can't find the HWND FindWIndow, can only get to HANDLE
Excuse me what method can let the program received A key message? Sendmessage, such as postmessgae HWND
CodePudding user response:

CodePudding user response:
A process there are always right, through the process of try to obtain the corresponding handleCodePudding user response:
/SendInput keybd_event () ()