https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-ishungappwindow
IsHungAppWindow function (winuser.h) - Win32 apps | Microsoft Learn
Determines whether the system considers that a specified application is not responding.
functionhappsmicrosoftlearn