IsDialogMessage

[DllImport("user32.dll", SetLastError = true)]
public static extern bool IsDialogMessage(
   IntPtr hDlg,
   ref MSG lpMsg
);

Microsoft documentation: Link

Last updated