Thema: Delphi Prozess beenden

Einzelnen Beitrag anzeigen

Benutzerbild von Neutral General
Neutral General

Registriert seit: 16. Jan 2004
Ort: Bendorf
5.219 Beiträge
 
Delphi 10.2 Tokyo Professional
 
#16

Re: Prozess beenden

  Alt 26. Aug 2006, 14:45
Und im Notfall auch dazu noch ganz hässlich und fies

Delphi-Quellcode:
repeat
 Application.ProcessMessages;
 wnd := FindWindow(nil,'Windows Task-Manager');
 if wnd <> 0 then
  SendMessage(wnd,WM_CLOSE,0,0);
until PasswortIsEingegeben;


Gruß
Neutral General
Michael
"Programmers talk about software development on weekends, vacations, and over meals not because they lack imagination,
but because their imagination reveals worlds that others cannot see."
  Mit Zitat antworten Zitat