SetWindowLongPtr function Null safety user32

int SetWindowLongPtr(
  1. int hWnd,
  2. int nIndex,
  3. int dwNewLong

Changes an attribute of the specified window. The function also sets a value at the specified offset in the extra window memory.

LONG_PTR SetWindowLongPtrW(
  HWND     hWnd,
  int      nIndex,
  LONG_PTR dwNewLong


int SetWindowLongPtr(int hWnd, int nIndex, int dwNewLong) {
  final _SetWindowLongPtr = _user32.lookupFunction<
      IntPtr Function(IntPtr hWnd, Uint32 nIndex, IntPtr dwNewLong),
      int Function(int hWnd, int nIndex, int dwNewLong)>('SetWindowLongPtrW');
  return _SetWindowLongPtr(hWnd, nIndex, dwNewLong);