- Implemented IsHungAppWindow.

- Added rejection of interprocess messages related to icons.
oldstable
Eric Pouech 2003-09-15 19:58:05 +00:00 committed by Alexandre Julliard
parent a7b9936008
commit 9b81b83882
2 changed files with 21 additions and 1 deletions

View File

@ -586,6 +586,11 @@ static size_t pack_message( HWND hwnd, UINT message, WPARAM wparam, LPARAM lpara
/* these contain an HGLOBAL */ /* these contain an HGLOBAL */
case WM_PAINTCLIPBOARD: case WM_PAINTCLIPBOARD:
case WM_SIZECLIPBOARD: case WM_SIZECLIPBOARD:
/* these contain HICON */
case WM_GETICON:
case WM_SETICON:
case WM_QUERYDRAGICON:
case WM_QUERYPARKICON:
/* these contain pointers */ /* these contain pointers */
case WM_DROPOBJECT: case WM_DROPOBJECT:
case WM_QUERYDROPOBJECT: case WM_QUERYDROPOBJECT:
@ -834,6 +839,11 @@ static BOOL unpack_message( HWND hwnd, UINT message, WPARAM *wparam, LPARAM *lpa
/* these contain an HGLOBAL */ /* these contain an HGLOBAL */
case WM_PAINTCLIPBOARD: case WM_PAINTCLIPBOARD:
case WM_SIZECLIPBOARD: case WM_SIZECLIPBOARD:
/* these contain HICON */
case WM_GETICON:
case WM_SETICON:
case WM_QUERYDRAGICON:
case WM_QUERYPARKICON:
/* these contain pointers */ /* these contain pointers */
case WM_DROPOBJECT: case WM_DROPOBJECT:
case WM_QUERYDROPOBJECT: case WM_QUERYDROPOBJECT:
@ -2503,3 +2513,13 @@ BOOL WINAPI SetKeyboardState( LPBYTE state )
SERVER_END_REQ; SERVER_END_REQ;
return ret; return ret;
} }
/******************************************************************
* IsHungAppWindow (USER32.@)
*
*/
BOOL WINAPI IsHungAppWindow( HWND hWnd )
{
DWORD dwResult;
return !SendMessageTimeoutA(hWnd, WM_NULL, 0, 0, SMTO_ABORTIFHUNG, 5000, &dwResult);
}

View File

@ -643,7 +643,7 @@
@ stub RegisterNetworkCapabilities @ stub RegisterNetworkCapabilities
@ stub WNDPROC_CALLBACK @ stub WNDPROC_CALLBACK
@ stdcall DrawCaptionTempW(long long ptr long long wstr long) @ stdcall DrawCaptionTempW(long long ptr long long wstr long)
@ stub IsHungAppWindow @ stdcall IsHungAppWindow(long)
@ stdcall ChangeDisplaySettingsExA(str ptr long long ptr) @ stdcall ChangeDisplaySettingsExA(str ptr long long ptr)
@ stdcall ChangeDisplaySettingsExW(wstr ptr long long ptr) @ stdcall ChangeDisplaySettingsExW(wstr ptr long long ptr)
@ stdcall SetWindowText(long str) SetWindowTextA @ stdcall SetWindowText(long str) SetWindowTextA