PostMessage

[DllImport("user32.dll", SetLastError = true)]
public static extern bool PostMessage(
   IntPtr hWnd,
   uint Msg,
   IntPtr wParam,
   IntPtr lParam
);

Microsoft documentation: Link

Last updated