begin
H:=Findwindow(nil,'金山词霸2005');
if H<>0 then closeKingSoft(h);
H:=Findwindow(nil,'金山词霸2004')
if H<>0 then closeKingSoft(h);
H:=Findwindow(nil,'金山词霸2003')
if H<>0 then closeKingSoft(h);
end;
procedure CloseKingSoft(Handle:hwnd);
begin
sendMessage(handle,wm_close,0,0);
end;
end;