◄Function Group► ◄Overview► ◄Up► ◄Next► ◄Previous► ──────────────────────────────────────────────────────────────────────────── #define INCL_WINWINDOWMGR BOOL WinSetWindowPtr(hwnd, index, p) HWND hwnd; /* handle of the window */ SHORT index; /* index of the reserved memory */ PVOID p; /* pointer to place into reserved memory */ The WinSetWindowPtr function places a pointer value into the reserved memory of a window. Parameter Description ──────────────────────────────────────────────────────────────────────────── hwnd Identifies the window whose reserved memory will be changed. index Specifies the zero-based index of the pointer value to set. Valid values are in the range zero through the number of bytes of window data (for example, a value of 8 would be an index to the third pointer). The value QWP_PFNWP can be used as the index for the address of the window procedure for the window. p Specifies the pointer to store in the window's reserved memory. Return Value The return value is TRUE if the function is successful or FALSE if an error occurs. See Also WinQueryWindowPtr, WinSetWindowULong ♦