[PATCH] services.exe: add a new program
Mikołaj Zalewski
mikolaj at zalewski.pl
Sat Mar 15 03:49:42 CDT 2008
---
.gitignore | 1 +
Makefile.in | 2 +
configure |16889 ++++++++++++++++++++---------------------
configure.ac | 1 +
programs/Makefile.in | 2 +
programs/services/Makefile.in | 13 +
programs/services/services.c | 29 +
7 files changed, 8489 insertions(+), 8448 deletions(-)
create mode 100644 programs/services/Makefile.in
create mode 100644 programs/services/services.c
diff --git a/.gitignore b/.gitignore
index d2910e9..604fb40 100644
--- a/.gitignore
+++ b/.gitignore
@@ -573,6 +573,7 @@ programs/rpcss/irot_s.c
programs/rpcss/rpcss
programs/rundll32/rundll32
programs/secedit/secedit
+programs/services/services
programs/spoolsv/spoolsv
programs/start/start
programs/svchost/svchost
diff --git a/Makefile.in b/Makefile.in
index 34b4e56..233388d 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -526,6 +526,7 @@ ALL_MAKEFILES = \
programs/rpcss/Makefile \
programs/rundll32/Makefile \
programs/secedit/Makefile \
+ programs/services/Makefile \
programs/spoolsv/Makefile \
programs/start/Makefile \
programs/svchost/Makefile \
@@ -944,6 +945,7 @@ programs/regsvr32/Makefile: programs/regsvr32/Makefile.in programs/Makeprog.rule
programs/rpcss/Makefile: programs/rpcss/Makefile.in programs/Makeprog.rules
programs/rundll32/Makefile: programs/rundll32/Makefile.in programs/Makeprog.rules
programs/secedit/Makefile: programs/secedit/Makefile.in programs/Makeprog.rules
+programs/services/Makefile: programs/services/Makefile.in programs/Makeprog.rules
programs/spoolsv/Makefile: programs/spoolsv/Makefile.in programs/Makeprog.rules
programs/start/Makefile: programs/start/Makefile.in programs/Makeprog.rules
programs/svchost/Makefile: programs/svchost/Makefile.in programs/Makeprog.rules
--- a/configure.ac
+++ b/configure.ac
@@ -2030,6 +2030,7 @@ AC_CONFIG_FILES([programs/regsvr32/Makefile])
AC_CONFIG_FILES([programs/rpcss/Makefile])
AC_CONFIG_FILES([programs/rundll32/Makefile])
AC_CONFIG_FILES([programs/secedit/Makefile])
+AC_CONFIG_FILES([programs/services/Makefile])
AC_CONFIG_FILES([programs/spoolsv/Makefile])
AC_CONFIG_FILES([programs/start/Makefile])
AC_CONFIG_FILES([programs/svchost/Makefile])
diff --git a/programs/Makefile.in b/programs/Makefile.in
index 15fd7bd..bd4ec3d 100644
--- a/programs/Makefile.in
+++ b/programs/Makefile.in
@@ -26,6 +26,7 @@ SUBDIRS = \
rpcss \
rundll32 \
secedit \
+ services \
spoolsv \
start \
svchost \
@@ -71,6 +72,7 @@ INSTALLSUBDIRS = \
rpcss \
rundll32 \
secedit \
+ services \
spoolsv \
start \
svchost \
diff --git a/programs/services/Makefile.in b/programs/services/Makefile.in
new file mode 100644
index 0000000..11c17e9
--- /dev/null
+++ b/programs/services/Makefile.in
@@ -0,0 +1,13 @@
+TOPSRCDIR = @top_srcdir@
+TOPOBJDIR = ../..
+SRCDIR = @srcdir@
+VPATH = @srcdir@
+MODULE = services.exe
+APPMODE = -mwindows
+IMPORTS = kernel32
+
+C_SRCS = services.c
+
+ at MAKE_PROG_RULES@
+
+ at DEPENDENCIES@ # everything below this line is overwritten by make depend
diff --git a/programs/services/services.c b/programs/services/services.c
new file mode 100644
index 0000000..414a8ed
--- /dev/null
+++ b/programs/services/services.c
@@ -0,0 +1,29 @@
+/*
+ * Services.exe - the Service Control Manager (SCM) starts/stops
+ * the services and keeps their state
+ *
+ * Copyright 2007 Google (Mikolaj Zalewski)
+ *
+ * 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
+ */
+
+#define WIN32_LEAN_AND_MEAN
+
+#include <stdarg.h>
+
+int main(int argc, char *argv[])
+{
+ return 0;
+}
--
1.5.4
--------------060707080306090504080605--
More information about the wine-patches
mailing list