Delphi-Quellcode:
function EnumWindowsProc(Wnd: HWND; LParam: LPARAM): BOOL; stdcall;
begin
if (GetWindowLong(Wnd, GWL_STYLE) and WS_SYSMENU <> 0) and
((IsWindowVisible(Wnd) or IsIconic(wnd)) and
((GetWindowLong(Wnd, GWL_HWNDPARENT) = 0) or
(GetWindowLong(Wnd, GWL_HWNDPARENT) = GetDesktopWindow)) and
(GetWindowLong(Wnd, GWL_EXSTYLE) and WS_EX_TOOLWINDOW = 0)) then
begin
// fenster hat Taskbar Eintrag...
end;
result := True;
end;
Das ganze sollte alle möglichkeiten erschlagen