Mike McCormack : user32: Stub implementations for Win64's Get/ Set LongPtr functions.

Alexandre Julliard julliard at wine.codeweavers.com
Tue May 30 13:07:28 CDT 2006


Module: wine
Branch: refs/heads/master
Commit: 2e1d2b30f84d26903cfafb9734219b2cc435517f
URL:    http://source.winehq.org/git/?p=wine.git;a=commit;h=2e1d2b30f84d26903cfafb9734219b2cc435517f

Author: Mike McCormack <mike at codeweavers.com>
Date:   Tue May 30 10:47:52 2006 +0900

user32: Stub implementations for Win64's Get/Set LongPtr functions.

---

 dlls/user/class.c     |   54 +++++++++++++++++++++++++++++++++++++++++++++++++
 dlls/user/user32.spec |    8 +++++++
 dlls/user/win.c       |   54 +++++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 116 insertions(+), 0 deletions(-)

diff --git a/dlls/user/class.c b/dlls/user/class.c
index 69fb5f7..a08d7b5 100644
--- a/dlls/user/class.c
+++ b/dlls/user/class.c
@@ -1120,3 +1120,57 @@ BOOL16 WINAPI ClassNext16( CLASSENTRY *p
     return TRUE;
 }
 #endif
+
+/* 64bit versions */
+
+#ifdef GetClassLongPtrA
+#undef GetClassLongPtrA
+#endif
+
+#ifdef GetClassLongPtrW
+#undef GetClassLongPtrW
+#endif
+
+#ifdef SetClassLongPtrA
+#undef SetClassLongPtrA
+#endif
+
+#ifdef SetClassLongPtrW
+#undef SetClassLongPtrW
+#endif
+
+/***********************************************************************
+ *		GetClassLongPtrA (USER32.@)
+ */
+ULONG_PTR WINAPI GetClassLongPtrA( HWND hwnd, INT offset )
+{
+    FIXME("\n");
+    return 0;
+}
+
+/***********************************************************************
+ *		GetClassLongPtrW (USER32.@)
+ */
+ULONG_PTR WINAPI GetClassLongPtrW( HWND hwnd, INT offset )
+{
+    FIXME("\n");
+    return 0;
+}
+
+/***********************************************************************
+ *		SetClassLongPtrW (USER32.@)
+ */
+ULONG_PTR WINAPI SetClassLongPtrW( HWND hwnd, INT offset, LONG_PTR newval )
+{
+    FIXME("\n");
+    return 0;
+}
+
+/***********************************************************************
+ *		SetClassLongPtrA (USER32.@)
+ */
+ULONG_PTR WINAPI SetClassLongPtrA( HWND hwnd, INT offset, LONG_PTR newval )
+{
+    FIXME("\n");
+    return 0;
+}
diff --git a/dlls/user/user32.spec b/dlls/user/user32.spec
index e373712..817858d 100644
--- a/dlls/user/user32.spec
+++ b/dlls/user/user32.spec
@@ -256,6 +256,8 @@ # @ stub GetAppCompatFlags2
 @ stdcall GetClassInfoW(long wstr ptr)
 @ stdcall GetClassLongA(long long)
 @ stdcall GetClassLongW(long long)
+@ stdcall GetClassLongPtrA(long long)
+@ stdcall GetClassLongPtrW(long long)
 @ stdcall GetClassNameA(long ptr long)
 @ stdcall GetClassNameW(long ptr long)
 @ stdcall GetClassWord(long long)
@@ -373,6 +375,8 @@ # @ stub GetWinStationInfo
 @ stdcall GetWindowDC(long)
 @ stdcall GetWindowInfo(long ptr)
 @ stdcall GetWindowLongA(long long)
+@ stdcall GetWindowLongPtrA(long long)
+@ stdcall GetWindowLongPtrW(long long)
 @ stdcall GetWindowLongW(long long)
 # @ stub GetWindowModuleFileName
 @ stdcall GetWindowModuleFileNameA(long ptr long)
@@ -599,6 +603,8 @@ # @ stub ResolveDesktopForWOW
 @ stdcall SetCaretBlinkTime(long)
 @ stdcall SetCaretPos(long long)
 @ stdcall SetClassLongA(long long long)
+@ stdcall SetClassLongPtrA(long long long)
+@ stdcall SetClassLongPtrW(long long long)
 @ stdcall SetClassLongW(long long long)
 @ stdcall SetClassWord(long long long)
 @ stdcall SetClipboardData(long long)
@@ -659,6 +665,8 @@ # @ stub SetDesktopBitmap
 @ stdcall SetWindowContextHelpId(long long)
 @ stub SetWindowFullScreenState
 @ stdcall SetWindowLongA(long long long)
+@ stdcall SetWindowLongPtrA(long long long)
+@ stdcall SetWindowLongPtrW(long long long)
 @ stdcall SetWindowLongW(long long long)
 @ stdcall SetWindowPlacement(long ptr)
 @ stdcall SetWindowPos(long long long long long long long)
diff --git a/dlls/user/win.c b/dlls/user/win.c
index 080835c..08c5677 100644
--- a/dlls/user/win.c
+++ b/dlls/user/win.c
@@ -3177,3 +3177,57 @@ BOOL WINAPI UpdateLayeredWindow( HWND hw
           hwnd, hdcDst, pptDst, psize, hdcSrc, pptSrc, crKey, pblend, dwFlags);
     return 0;
 }
+
+/* 64bit versions */
+
+#ifdef GetWindowLongPtrW
+#undef GetWindowLongPtrW
+#endif
+
+#ifdef GetWindowLongPtrA
+#undef GetWindowLongPtrA
+#endif
+
+#ifdef SetWindowLongPtrW
+#undef SetWindowLongPtrW
+#endif
+
+#ifdef SetWindowLongPtrA
+#undef SetWindowLongPtrA
+#endif
+
+/*****************************************************************************
+ *              GetWindowLongPtrW (USER32.@)
+ */
+LONG_PTR WINAPI GetWindowLongPtrW( HWND hwnd, INT offset )
+{
+    FIXME("\n");
+    return 0;
+}
+
+/*****************************************************************************
+ *              GetWindowLongPtrA (USER32.@)
+ */
+LONG_PTR WINAPI GetWindowLongPtrA( HWND hwnd, INT offset )
+{
+    FIXME("\n");
+    return 0;
+}
+
+/*****************************************************************************
+ *              SetWindowLongPtrW (USER32.@)
+ */
+LONG_PTR WINAPI SetWindowLongPtrW( HWND hwnd, INT offset, LONG_PTR newval )
+{
+    FIXME("\n");
+    return 0;
+}
+
+/*****************************************************************************
+ *              SetWindowLongPtrA (USER32.@)
+ */
+LONG_PTR WINAPI SetWindowLongPtrA( HWND hwnd, INT offset, LONG_PTR newval )
+{
+    FIXME("\n");
+    return 0;
+}




More information about the wine-cvs mailing list