IsHungAppWindow function user32

int IsHungAppWindow(
  1. int hwnd
)

Determines whether the system considers that a specified application is not responding. An application is considered to be not responding if it is not waiting for input, is not in startup processing, and has not called PeekMessage within the internal timeout period of 5 seconds.

BOOL IsHungAppWindow(
  HWND hwnd
);

Implementation

int IsHungAppWindow(int hwnd) => _IsHungAppWindow(hwnd);