Is it? My grep on a WinXP & wine box didn't find SetWindowLongPtr.
According to winuser.h for MinGW32, it's a define to
SetWindowLong{A,W} which means it's not in the user32.dll as
SetWindowLongPtr on 32 bit machines. The windows documentation also
notes this as:
> Note To write code that is compatible with both 32-bit and 64-bit versions of Windows, use SetWindowLongPtr. When compiling for 32-bit Windows, SetWindowLongPtr is defined as a call to the SetWindowLong function.
This leads me to believe that the Win32 user32.dll doesn't have
SetWindowLongPtr, instead it has SetWindowLong.