DispatchMessage

[DllImport("user32.dll", SetLastError = true)]
public static extern IntPtr DispatchMessageA([In] ref MSG lpmsg
);

Microsoft documentation: Link

Last updated