some user32 addons

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



A+
--
Eric Pouech
Name:          hung
ChangeLog:     
- Implemented IsHungAppWindow
- Added rejection of interprocess messages related to icons
License:       X11
GenDate:       2003/09/13 12:52:15 UTC
ModifiedFiles: dlls/user/user32.spec dlls/user/message.c
===================================================================
RCS file: /home/cvs/cvsroot/wine/wine/dlls/user/user32.spec,v
retrieving revision 1.76
diff -u -u -r1.76 user32.spec
--- dlls/user/user32.spec	12 Aug 2003 20:33:26 -0000	1.76
+++ dlls/user/user32.spec	13 Sep 2003 12:16:53 -0000
@@ -643,7 +643,7 @@
 @ stub RegisterNetworkCapabilities
 @ stub WNDPROC_CALLBACK
 @ stdcall DrawCaptionTempW(long long ptr long long wstr long)
-@ stub IsHungAppWindow
+@ stdcall IsHungAppWindow(long)
 @ stdcall ChangeDisplaySettingsExA(str ptr long long ptr)
 @ stdcall ChangeDisplaySettingsExW(wstr ptr long long ptr)
 @ stdcall SetWindowText(long str) SetWindowTextA
Index: dlls/user/message.c
===================================================================
RCS file: /home/cvs/cvsroot/wine/wine/dlls/user/message.c,v
retrieving revision 1.44
diff -u -u -r1.44 message.c
--- dlls/user/message.c	5 Sep 2003 23:08:29 -0000	1.44
+++ dlls/user/message.c	13 Sep 2003 12:31:17 -0000
@@ -586,6 +586,11 @@
     /* these contain an HGLOBAL */
     case WM_PAINTCLIPBOARD:
     case WM_SIZECLIPBOARD:
+    /* these contain HICON */
+    case WM_GETICON:
+    case WM_SETICON:
+    case WM_QUERYDRAGICON:
+    case WM_QUERYPARKICON:
     /* these contain pointers */
     case WM_DROPOBJECT:
     case WM_QUERYDROPOBJECT:
@@ -834,6 +839,11 @@
     /* these contain an HGLOBAL */
     case WM_PAINTCLIPBOARD:
     case WM_SIZECLIPBOARD:
+    /* these contain HICON */
+    case WM_GETICON:
+    case WM_SETICON:
+    case WM_QUERYDRAGICON:
+    case WM_QUERYPARKICON:
     /* these contain pointers */
     case WM_DROPOBJECT:
     case WM_QUERYDROPOBJECT:
@@ -2502,4 +2512,14 @@
     }
     SERVER_END_REQ;
     return ret;
+}
+
+/******************************************************************
+ *		IsHungAppWindow (USER32.@)
+ *
+ */
+BOOL WINAPI IsHungAppWindow( HWND hWnd )
+{
+    DWORD dwResult; 
+    return !SendMessageTimeoutA(hWnd, WM_NULL, 0, 0, SMTO_ABORTIFHUNG, 5000, &dwResult);	
 }

[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux