- Регистрация
- 1 Мар 2015
- Сообщения
- 1,481
- Баллы
- 155
Код:
function shut_off(const sTitle: PChar): boolean;
var
h: THandle;
begin
h:= FindWindow(nil, sTitle);
Result:= PostMessage(h, WM_QUIT, 0, 0);
end;
procedure TForm1.Button1Click(Sender: TObject);
begin
shut_off(PWideChar(Edit1.Text));
end;