Function Reference


_WinAPI_GetWindowLong

Retrieves information about the specified window

#include <WinAPI.au3>
_WinAPI_GetWindowLong ( $hWnd, $iIndex )

Parameters

$hWnd Handle of the window
$iIndex Specifies the 0-based offset to the value to be retrieved.
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 - Retrieves the extended window styles
    $GWL_STYLE - Retrieves the window styles
    $GWL_WNDPROC - Retrieves the address of the window procedure
    $GWL_HINSTANCE - Retrieves the handle of the application instance
    $GWL_HWNDPARENT - Retrieves the handle of the parent window, if any
    $GWL_ID - Retrieves the identifier of the window
    $GWL_USERDATA - Retrieves the 32-bit value associated with the window

Return Value

Success: the requested value.
Failure: sets the @error flag to non-zero, call _WinAPI_GetLastError() to get extended error information.

Remarks

Above constants require #include <Constants.au3>

Related

_WinAPI_SetWindowLong

See Also

Search GetWindowLongPtr in MSDN Library.