The WindowEx.GetWindowLong function retrieves information about the specified window.

number WindowEx.GetWindowLong(

number hWnd, -- handle of window
string nIndex --offset of value to retrieve
);

*** = Can Return A Value But You Can Not Use It Anywhere

Parameters

hWnd

Identifies the window and, indirectly, the class to which the window belongs.

nIndex

Specifies the offset to the value to be retrieved. 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, or a handle representing 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. Each window has a corresponding 32-bit value intended for use by the application that created the window.***

Return Values

If the function succeeds, the return value is the requested value.
If the function fails, the return value is 0.