SetWindowLongPtr function Null safety user32
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
);
Implementation
int SetWindowLongPtr(int hWnd, int nIndex, int dwNewLong) {
final _SetWindowLongPtr = _user32.lookupFunction<
IntPtr Function(IntPtr hWnd, Int32 nIndex, IntPtr dwNewLong),
int Function(int hWnd, int nIndex, int dwNewLong)>('SetWindowLongPtrW');
return _SetWindowLongPtr(hWnd, nIndex, dwNewLong);
}