GweBypassCoredllThunk_t::GetWindowLongW_I

This method retrieves information about the specified window. GweBypassCoredllThunk_t::GetWindowLongW_I also retrieves the 32-bit (long) value at the specified offset into the extra window memory of a window.

static LONG WINAPI GetWindowLongW_I(
  HWND hwndThis,
  int nIndex
);

Parameters

  • hwndThis
    [in] Handle to the window and, indirectly, the class to which the window belongs.

  • nIndex
    [in] Integer that specifies the zero-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. The following table shows other possible values.

    Value Description
    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. You must use the CallWindowProc function to call the window procedure.
    GWL_ID Not supported.
    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. Windows CE versions 2.0 and later support this value, but Windows CE versions 1.0 and 1.01 do not.

    The following table shows values that are also available when the hWnd parameter identifies a dialog box.

    Value Description
    DWL_MSGRESULT Retrieves the return value of a message processed in the dialog box procedure.
    DWL_USER Retrieves extra information private to the application, such as handles or pointers.

Return Values

The requested 32-bit value indicates success. Zero indicates failure. To get extended error information, call GetLastError.

Remarks

This method is an internal version of the GetWindowLong function.

The nIndex parameter must be a multiple of 4 bytes.

Unaligned access is not supported.

Requirements

OS Versions: Windows CE .NET 4.0 and later.
Header: GweBypassCoredllThunk.hpp.

See Also

CallWindowProc | GetWindowLong | RegisterClass | GweBypassCoredllThunk_t::SetParent_I | GweBypassCoredllThunk_t::SetWindowLongW_I | WNDCLASS

Last updated on Wednesday, April 13, 2005

© 2005 Microsoft Corporation. All rights reserved.