Function Reference


Sets information about the specified window

#include <WinAPISysWin.au3>
_WinAPI_SetWindowLong ( $hWnd, $iIndex, $iValue )


$hWnd Handle of the window
$iIndex Specifies the 0-based offset to the value to be set.
Valid values are in the range zero through the number of bytes of extra window memory, minus four;
for example, if you specified 12 or more bytes of extra memory, a value of 8 would be an index to the third 32-bit integer.
To retrieve any other value specify one of the following values:
    $GWL_EXSTYLE - Sets the extended window styles
    $GWL_STYLE - Sets the window styles
    $GWL_WNDPROC - Sets the address of the window procedure
    $GWL_HINSTANCE - Sets the handle of the application instance
    $GWL_HWNDPARENT - Sets the handle of the parent window, if any
    $GWL_ID - Sets the identifier of the window
    $GWL_USERDATA - Sets the 32-bit value associated with the window
$iValue Specifies the replacement value

Return Value

Success: the previous value.
Failure: 0.


Above constants require #include <WinAPIConstants.au3>


_WinAPI_CallWindowProc, _WinAPI_GetWindowLong

See Also

Search SetWindowLongPtr in MSDN Library.