GetDlgItemInt function Null safety user32

int GetDlgItemInt(
  1. int hDlg,
  2. int nIDDlgItem,
  3. Pointer<Int32> lpTranslated,
  4. int bSigned
)

Translates the text of a specified control in a dialog box into an integer value.

UINT GetDlgItemInt(
  HWND hDlg,
  int  nIDDlgItem,
  BOOL *lpTranslated,
  BOOL bSigned
);

Implementation

int GetDlgItemInt(
    int hDlg, int nIDDlgItem, Pointer<Int32> lpTranslated, int bSigned) {
  final _GetDlgItemInt = _user32.lookupFunction<
      Uint32 Function(IntPtr hDlg, Int32 nIDDlgItem,
          Pointer<Int32> lpTranslated, Int32 bSigned),
      int Function(int hDlg, int nIDDlgItem, Pointer<Int32> lpTranslated,
          int bSigned)>('GetDlgItemInt');
  return _GetDlgItemInt(hDlg, nIDDlgItem, lpTranslated, bSigned);
}