![]() |
| ||
|
|
Новости |
Поиск |
FAQ |
Статьи |
Книги |
Новости VCL
| | Форумы ЧАТ |
Орешник |
|
| |||
| |||
« предыдущая ветвь | форум | следующая ветвь »
Как завершить процесс (через Delphi) [D1, D2, D3, D4, D5, D6, Win95/98, WinME, NT4, Win2k]
davile © (2002-01-15 17:33:00)
Tosov (2002-01-16 00:48:00) [1]Для Windows NT/2000/XP
http://delphi.xonix.ru/faq/system/terminate01.shtml
Almaz (2002-01-16 00:18:00) [2]>Севостьянов Игорь
Не только. Можно еще использовать недокументированную, но более мощную функцию EndTask.
Удачи.
Севостьянов Игорь (2002-01-15 19:36:00) [3]Если я правильно понял вопрос, то только с помощью WinAPI
BOOL TerminateProcess(
HANDLE hProcess, // handle to the process
UINT uExitCode // exit code for the process
);
Parameters
hProcess
Identifies the process to terminate.
Windows NT: The handle must have PROCESS_TERMINATE access. For more information, see Process Objects.
uExitCode
Specifies the exit code for the process and for all threads terminated as a result of this call. Use the GetExitCodeProcess function to retrieve the process"s exit value. Use the GetExitCodeThread function to retrieve a thread"s exit value.
See Also
CreateProcess, CreateRemoteThread, CreateThread, ExitThread, GetExitCodeProcess, GetExitCodeThread, OpenProcess, TerminateProcess