reactos/base/applications/cmdutils
He Yang 5874c66e41
[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__`
2020-04-03 17:37:53 +02:00
..
at [REACTOS] Fix remaining ' \n' typos, in *.rc (#2393) 2020-03-06 19:08:25 +01:00
attrib [REACTOS] Fix remaining ' \n' typos, in *.rc (#2393) 2020-03-06 19:08:25 +01:00
chcp [REACTOS] Fix remaining ' \n' typos, in *.rc (#2393) 2020-03-06 19:08:25 +01:00
clip
comp [CMDUTILS] Add italian translation for 'comp' utility. (#1931) 2019-10-08 16:52:30 +02:00
cscript
dbgprint
doskey [REACTOS] Fix remaining ' \n' typos, in *.rc (#2393) 2020-03-06 19:08:25 +01:00
eventcreate [REACTOS] Fix remaining ' \n' typos, in *.rc (#2393) 2020-03-06 19:08:25 +01:00
find [TRANSLATION] Polish translation update (#1916) 2019-09-20 21:51:47 +02:00
fsutil [FSUTIL] Mark some functions as static (only used in this file) 2020-03-26 16:39:16 +01:00
help [REACTOS] Fix remaining ' \n' typos, in *.rc (#2393) 2020-03-06 19:08:25 +01:00
hostname
label [LABEL] Fix MSVC build. 2019-09-22 16:19:07 +02:00
lodctr
mode [CMDUTILS] Add italian translation for mode command. (#1992) 2019-10-26 22:17:48 +02:00
mofcomp
more [REACTOS] Fix remaining ' \n' typos, in *.rc (#2393) 2020-03-06 19:08:25 +01:00
reg [REG] Sync with Wine Staging 4.18. CORE-16441 2019-12-23 00:58:26 +01:00
schtasks
sort
taskkill [TASKKILL] Improve taskkill utility (#2459) 2020-04-03 17:37:53 +02:00
timeout [TIMEOUT] Use Int32x32To64 instead of __emul 2019-08-20 22:31:55 +02:00
tree
whoami [REACTOS] Fix remaining ' \n' typos, in *.rc (#2393) 2020-03-06 19:08:25 +01:00
wmic
wscript [CSCRIPT][WSCRIPT] Sync with Wine Staging 4.18. CORE-16441 2019-12-23 00:58:01 +01:00
xcopy
CMakeLists.txt [LABEL][CMD] Convert the label command to a standalone executable 2019-09-22 14:51:23 +02:00