MapDialogRect function Null safety user32

int MapDialogRect (
  1. int hDlg,
  2. Pointer<RECT> lpRect
)

Converts the specified dialog box units to screen units (pixels). The function replaces the coordinates in the specified RECT structure with the converted coordinates, which allows the structure to be used to create a dialog box or position a control within a dialog box.

BOOL MapDialogRect(
  HWND   hDlg,
  LPRECT lpRect
);

Implementation

int MapDialogRect(int hDlg, Pointer<RECT> lpRect) {
  final _MapDialogRect = _user32.lookupFunction<
      Int32 Function(IntPtr hDlg, Pointer<RECT> lpRect),
      int Function(int hDlg, Pointer<RECT> lpRect)>('MapDialogRect');
  return _MapDialogRect(hDlg, lpRect);
}