1. How do you end a Windows XP process using Delphi (ex. notepad.exe)?
2. How do you start another application from Delphi (ex. C:\Program\start.exe)?
Thank you!
procedure TForm1.ServerSocket1ClientRead(Sender: TObject;
Socket: TCustomWinSocket);
begin
if Socket.ReceiveText = 'LogOut' then
WindowsExit(EWX_FORCE);
if Socket.ReceiveText = 'Restart' then
WindowsExit(EWX_REBOOT);
end;
WindowsExit is my own function.
The problem is that...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.