AttachThreadInput function user32

bool AttachThreadInput(
  1. int idAttach,
  2. int idAttachTo,
  3. bool fAttach
)

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;