mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 22:56:00 +00:00
[WIN32SS][USER32] Ghost is a hung window (#1244)
IsHungAppWindow(a ghost window) == TRUE. CORE-11944
This commit is contained in:
parent
2440df762c
commit
9285bd19de
1 changed files with 12 additions and 0 deletions
|
@ -1841,6 +1841,18 @@ InternalGetWindowText(HWND hWnd, LPWSTR lpString, int nMaxCount)
|
||||||
BOOL WINAPI
|
BOOL WINAPI
|
||||||
IsHungAppWindow(HWND hwnd)
|
IsHungAppWindow(HWND hwnd)
|
||||||
{
|
{
|
||||||
|
UNICODE_STRING ClassName;
|
||||||
|
WCHAR szClass[16];
|
||||||
|
static const UNICODE_STRING GhostClass = RTL_CONSTANT_STRING(L"Ghost");
|
||||||
|
|
||||||
|
/* Ghost is a hung window */
|
||||||
|
RtlInitEmptyUnicodeString(&ClassName, szClass, sizeof(szClass));
|
||||||
|
if (NtUserGetClassName(hwnd, FALSE, &ClassName) &&
|
||||||
|
RtlEqualUnicodeString(&ClassName, &GhostClass, TRUE))
|
||||||
|
{
|
||||||
|
return TRUE;
|
||||||
|
}
|
||||||
|
|
||||||
return (NtUserQueryWindow(hwnd, QUERY_WINDOW_ISHUNG) != 0);
|
return (NtUserQueryWindow(hwnd, QUERY_WINDOW_ISHUNG) != 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue