IsDialogMessage function Null safety user32

int IsDialogMessage(
  1. int hDlg,
  2. Pointer<MSG> lpMsg

Determines whether a message is intended for the specified dialog box and, if it is, processes the message.

BOOL IsDialogMessageW(
  HWND  hDlg,
  LPMSG lpMsg


int IsDialogMessage(int hDlg, Pointer<MSG> lpMsg) {
  final _IsDialogMessage = _user32.lookupFunction<
      Int32 Function(IntPtr hDlg, Pointer<MSG> lpMsg),
      int Function(int hDlg, Pointer<MSG> lpMsg)>('IsDialogMessageW');
  return _IsDialogMessage(hDlg, lpMsg);