Vielleicht hilft das hier:
Delphi-Quellcode:
function IsAppRespondigNT(wnd: HWND): Boolean;
type
TIsHungAppWindow = function(wnd:hWnd): BOOL; stdcall;
var
hKernel: THandle;
IsHungAppWindow: TIsHungAppWindow;
begin
Result := True;
hKernel := GetModuleHandle('user32.dll');
if (hKernel > 0) then
begin
@IsHungAppWindow := GetProcAddress(hKernel, 'IsHungAppWindow');
if Assigned(IsHungAppWindow) then
begin
Result := not IsHungAppWindow(wnd);
end;
end;
end;