AttachThreadInput function user32
Attaches or detaches the input processing mechanism of one thread to that of another thread.
To learn more, see learn.microsoft.com/windows/win32/api/winuser/nf-winuser-attachthreadinput.
Implementation
@pragma('vm:prefer-inline')
bool AttachThreadInput(int idAttach, int idAttachTo, bool fAttach) =>
_AttachThreadInput(idAttach, idAttachTo, fAttach ? TRUE : FALSE) != FALSE;