int = SetWindowLong(hwnd, index , value )

Places a long value at the specified offset into the extra window memory of the given window.


hwnd : PyHANDLE

The handle to the window

index : int

The index of the item to set.

value : object

The value to set.


This function calls the SetWindowLongPtr Api function

If index is GWLP_WNDPROC, then the value parameter must be a callable object (or a dictionary) to use as the new window procedure.