GetMessage

[DllImport("user32.dll", SetLastError = true)]
public static extern bool GetMessage(
   out MSG lpMsg,
   IntPtr hWnd,
   uint wMsgFilterMin,
   uint wMsgFilterMax
);

Microsoft documentation: Link

Last updated