Commit graph

25 commits

Author SHA1 Message Date
Torge Matthies
2259cc34a8 sc: Allow using separate arguments for parameter name and value.
In addition to using one argument for both parameter name and value.

This fixes a regression from commit 8b38c91d83.

Signed-off-by: Torge Matthies <tmatthies@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-05-03 20:39:14 +02:00
Torge Matthies
a2bc9e5f36 sc/tests: Add tests.
Signed-off-by: Torge Matthies <tmatthies@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-05-03 20:39:10 +02:00
Dmitry Timoshkov
bc54bcf878 sc: Don't silently fail when something doesn't work as expected in a few more places.
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-03-29 20:53:50 +02:00
Dmitry Timoshkov
e75ebfb31f sc: Print service status after 'start' and 'stop' commands.
Like Windows 10 sc.exe does.

Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-03-29 20:53:50 +02:00
Dmitry Timoshkov
921c86a35d sc: Add support for the 'query' command.
Output is modelled on behaviour observed under the Windows 10.

Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-03-29 20:53:50 +02:00
Dmitry Timoshkov
1447872b0c sc: Don't silently fail when something doesn't work as expected.
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-03-18 17:40:52 +01:00
Dmitry Timoshkov
8b38c91d83 sc: Fix parsing parameter name in the 'switch=param' constructs.
So that 'sc create test binpath=test.exe' actually works.

Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-03-18 17:40:47 +01:00
Eric Pouech
70d4f9b0c6 sc: Enable compilation with long types.
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-02-07 10:59:05 +01:00
Alexandre Julliard
f0cd33c69e include: Add support for defining Win32 types as 'long' where possible.
Add -DWINE_NO_LONG_TYPES to modules that still have compilation
warnings with long types.

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-01-27 20:38:22 +01:00
Alexandre Julliard
088a787a2c makefiles: Make -mno-cygwin the default.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-09-20 22:45:48 +02:00
Nikolay Sivov
d3ddc11864 sc: Fix typos in CLI arguments parsing.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-04-12 19:32:15 +02:00
Michael Stefaniuc
8e9b9da0f8 sc: Use wide-char string literals.
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-10-07 10:16:02 +02:00
Louis Lenders
a22b295cc3 sc.exe: Fake succes for the SdSet argument.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=49620
Signed-off-by: Louis Lenders <xerox.xerox2000x@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-07-27 23:28:16 +02:00
Alexandre Julliard
ed6a5e97e0 programs: Make all program entrypoints cdecl.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-10-17 17:05:47 +02:00
Alexandre Julliard
a0863ce2e5 sc: Build with msvcrt.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-05-01 10:39:55 +02:00
Nikolay Sivov
0a3e54480a sc: Fix service handle leak on error path (Coverity).
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-25 01:28:31 +09:00
Alexandre Julliard
86b1f94d28 makefiles: Get rid of the MAKE_PROG_RULES variable. 2014-01-02 12:12:57 +01:00
Alexandre Julliard
c9eee73450 makefiles: Define __WINESRC__ when building programs. 2012-01-23 16:07:37 +01:00
Alexandre Julliard
da35622b83 makefiles: Disable use of Unicode macros globally for all the programs. 2012-01-20 13:14:16 +01:00
Alexandre Julliard
81b8ee863e makefiles: Add a standard header for all makefiles to replace the common variable initializations. 2010-09-19 12:36:48 +02:00
Alexandre Julliard
6fb39dfe4a programs: Remove explicit imports of kernel32 and ntdll. 2010-07-21 17:38:37 +02:00
Hans Leidekker
e86ed3bf91 sc: Implement the start and stop commands. 2010-05-03 14:02:36 +02:00
Hans Leidekker
3e1f5ba382 sc: Implement the description and failure commands. 2010-05-03 14:02:30 +02:00
Hans Leidekker
5e9d2fc44a sc: Implement the create and delete commands. 2010-05-03 14:02:23 +02:00
Hans Leidekker
544da28e53 programs: Add a stubbed sc.exe.
This is a command line tool used to create and configure services.
It's included in XP and used by the Akamai client installer.
2010-05-03 14:02:14 +02:00