int = SetWindowLong(hwnd, offset , val )

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


hwnd : int

The handle to the window.

offset : int

Specifies the zero-based byte offset of the value to change. Valid values are in the range zero through the number of bytes of extra window memory, minus four (for example, if 12 or more bytes of extra memory were specified, a value of 8 would be an index to the third long integer), or one of the GWL_ constants.

val : int

Specifies the long value to place in the window's reserved memory.


This function calls the SetWindowLongPtr Api function