Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- M E W E L - <b>long pascal getwindowlong(hwnd hwnd, int ilong)</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
LONG pascal GetWindowLong(HWND hWnd, int iLong)

  Retrieves the single long residing at the 'iLong' position in the
window extra area.

Parameters
  hWnd is the window handle of the window to query.
  iLong is the 0-based long offset from the start of the window extra area.

Returns
  The long at pWinExtra[iLong].

Special Note:
        iLong is the equivilant long location, that is:
                (iLong * sizeof(long) )
        from the beginning of the extra bytes.
        The same is true for WORDs, BYTEs, & PTRs.

        This is important if you use different size objects in the window
        extra area.  It is probably easiest if you group the objects
        according to size, in decreasing order. That way you can always
        get at the object that you want. If, for instance, you needed 2
        byte sized objects and a long, you should make the long object
        the first item (offset = 0).  If you didn't, you would need to
        waste 2 bytes to align the long (offset =1, leaving 2 unused bytes).

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson