mirror of
https://github.com/reactos/reactos.git
synced 2025-07-31 10:21:50 +00:00
[TASKKILL] Improve taskkill utility (#2459)
Make the argument process of command utility "taskkill" behave same as what Windows does. Now options are no longer detected as parameters when placed after options that accept one. For example, `taskkill /im /f` will no longer regard `/f` as a process name. If `/?` and `/f` options appear more than once, an error will be reported, telling they are not allowed more than once. (e.g. `taskkill /f /pid 1000 /f`) If only one option `/f` is given without `/pid` or `/im`, an eerror will be reported, telling that one must specify `/pid` or `/im`. (e.g. `taskkill /f`) Additional changes: - Combine SendCloseMessages() and TerminateProcesses() functions. - Protect new written code with `#ifdef __REACTOS__`
This commit is contained in:
parent
ded98b846e
commit
5874c66e41
12 changed files with 347 additions and 1 deletions
|
@ -35,3 +35,6 @@
|
|||
#define STRING_ENUM_FAILED 112
|
||||
#define STRING_TERMINATE_FAILED 113
|
||||
#define STRING_SELF_TERMINATION 114
|
||||
#define STRING_PARAM_TOO_MUCH 115
|
||||
#define STRING_INVALID_SYNTAX 116
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue