[1/4] programs: Add a stubbed sc.exe.

Hans Leidekker hans at meelstraat.net
Mon May 3 05:56:58 CDT 2010


This is a command line tool used to create and configure services.
It's included in XP and used by the Akamai client installer.
---
 configure.ac            |    1 +
 programs/sc/Makefile.in |   12 ++++++++++++
 programs/sc/sc.c        |   27 +++++++++++++++++++++++++++
 3 files changed, 40 insertions(+), 0 deletions(-)
 create mode 100644 programs/sc/Makefile.in
 create mode 100644 programs/sc/sc.c

diff --git a/configure.ac b/configure.ac
index 71b1f16..dd5f3c7 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2695,6 +2695,7 @@ WINE_CONFIG_PROGRAM(regedit,installbin)
 WINE_CONFIG_PROGRAM(regsvr32,installbin)
 WINE_CONFIG_PROGRAM(rpcss,install)
 WINE_CONFIG_PROGRAM(rundll32,install)
+WINE_CONFIG_PROGRAM(sc,install)
 WINE_CONFIG_PROGRAM(secedit,install)
 WINE_CONFIG_PROGRAM(services,install)
 WINE_CONFIG_PROGRAM(spoolsv,install)
diff --git a/programs/sc/Makefile.in b/programs/sc/Makefile.in
new file mode 100644
index 0000000..71a20cc
--- /dev/null
+++ b/programs/sc/Makefile.in
@@ -0,0 +1,12 @@
+TOPSRCDIR = @top_srcdir@
+TOPOBJDIR = ../..
+SRCDIR    = @srcdir@
+VPATH     = @srcdir@
+MODULE    = sc.exe
+APPMODE   = -mconsole -municode
+IMPORTS   = kernel32
+EXTRADEFS = -DWINE_NO_UNICODE_MACROS
+
+C_SRCS = sc.c
+
+ at MAKE_PROG_RULES@
diff --git a/programs/sc/sc.c b/programs/sc/sc.c
new file mode 100644
index 0000000..6eb9c9e
--- /dev/null
+++ b/programs/sc/sc.c
@@ -0,0 +1,27 @@
+/*
+ * Copyright 2010 Hans Leidekker
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
+ */
+
+#include "wine/debug.h"
+
+WINE_DEFAULT_DEBUG_CHANNEL(sc);
+
+int wmain( int argc, WCHAR *argv[] )
+{
+    WINE_FIXME("stub\n");
+    return 1;
+}
-- 
1.7.0.4







More information about the wine-patches mailing list