PostThreadMessage function user32

int PostThreadMessage(
  1. int idThread,
  2. int Msg,
  3. int wParam,
  4. int lParam,
)

Posts a message to the message queue of the specified thread. It returns without waiting for the thread to process the message.

BOOL PostThreadMessageW(
  DWORD  idThread,
  UINT   Msg,
  WPARAM wParam,
  LPARAM lParam
);

Implementation

int PostThreadMessage(int idThread, int Msg, int wParam, int lParam) =>
    _PostThreadMessage(idThread, Msg, wParam, lParam);