Das muss jetzt "ungefähr" so aussehen:
Delphi-Quellcode:
...
if DefView = 0 then
DefView := FindWindowEx(DefView, 0, 'WorkerW', nil);
if DefView <> 0 then
begin
if IsActiveDesktopActive then
EnumChildWindows(DefView, @EnumDefViewProc, LPARAM(@DefView));
Result := FindWindowEx(DefView, 0, 'SysListView32', nil);
end;
...