[Bug 30556] 32 bit user32.dll does not export Get/SetWindowLongPtr

wine-bugs at winehq.org wine-bugs at winehq.org
Mon Apr 30 06:12:58 CDT 2012


http://bugs.winehq.org/show_bug.cgi?id=30556

Anastasius Focht <focht at gmx.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
                 CC|                            |focht at gmx.net
            Version|unspecified                 |1.5.3
         Resolution|                            |INVALID
            Summary|user32 does not export      |32 bit user32.dll does not
                   |Get/SetWindowLongPtr        |export Get/SetWindowLongPtr

--- Comment #1 from Anastasius Focht <focht at gmx.net> 2012-04-30 06:12:58 CDT ---
Hello,

this is by design = exactly what Windows does.

See MSDN:
http://msdn.microsoft.com/en-us/library/windows/desktop/ms633585%28v=vs.85%29.aspx

--- quote ---
To write code that is compatible with both 32-bit and 64-bit versions of
Windows, use GetWindowLongPtr. When compiling for 32-bit Windows,
GetWindowLongPtr is defined as a call to the GetWindowLong function.
--- quote ---

"defined as a call" means it is mapped to GetWindowLongA/W at compile time
(header file -> preprocessor).
See comment from "paulbassett13" (8/15/2010).

Wine source:
http://source.winehq.org/git/wine.git/blob/4180054c2fcd9b0fca0f3ef32c75af50d527d06d:/include/winuser.h#l3638

--- snip ----
3638 #ifdef _WIN64
3639 WINUSERAPI LONG_PTR    WINAPI GetWindowLongPtrA(HWND,INT);
3640 WINUSERAPI LONG_PTR    WINAPI GetWindowLongPtrW(HWND,INT);
3641 #else
3642 #define                       GetWindowLongPtrA GetWindowLongA
3643 #define                       GetWindowLongPtrW GetWindowLongW
3644 #endif
--- snip ----

Regards

-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the wine-bugs mailing list