//不知道对不对的。改了xianjun的程序<br>var<br> H: THandle;<br> S: string;<br>begin<br> S := 'Default IME';<br> H := GetNextWindow(Handle, GW_HWNDNEXT);<br> while (S = 'Default IME') do<br> begin<br> H := GetNextWindow(H, GW_HWNDNEXT);<br> if IsWindow(H) then<br> begin<br> SetLength(S, MAX_PATH);<br> SetLength(S, GetWindowText(H, PChar(S), MAX_PATH));<br> Edit1.Text := S+' --- '+IntToHex(H,0);<br> end;<br> end;<br>end;