From 2e49ffd0e80089e2b9b880a1dce61c23dbeae6ab Mon Sep 17 00:00:00 2001 From: Mikolaj Zalewski Date: Thu, 20 Sep 2007 10:17:33 -0700 Subject: [PATCH] services.exe: add a new program --- .gitignore | 1 Makefile.in | 2 configure |15895 ++++++++++++++++++++--------------------- configure.ac | 1 programs/Makefile.in | 2 programs/services/Makefile.in | 13 programs/services/services.c | 28 7 files changed, 7888 insertions(+), 8054 deletions(-) diff --git a/.gitignore b/.gitignore index 0b512ca..f444e0c 100644 --- a/.gitignore +++ b/.gitignore @@ -640,6 +640,7 @@ programs/rpcss/irot.h programs/rpcss/irot_s.c programs/rpcss/rpcss programs/rundll32/rundll32 +programs/services/services programs/spoolsv/spoolsv programs/start/rsrc.res programs/start/start diff --git a/Makefile.in b/Makefile.in index c7f426d..6e0df5e 100644 --- a/Makefile.in +++ b/Makefile.in @@ -477,6 +477,7 @@ ALL_MAKEFILES = \ programs/regsvr32/Makefile \ programs/rpcss/Makefile \ programs/rundll32/Makefile \ + programs/services/Makefile \ programs/spoolsv/Makefile \ programs/start/Makefile \ programs/taskmgr/Makefile \ @@ -845,6 +846,7 @@ programs/regedit/Makefile: programs/rege programs/regsvr32/Makefile: programs/regsvr32/Makefile.in programs/Makeprog.rules programs/rpcss/Makefile: programs/rpcss/Makefile.in programs/Makeprog.rules programs/rundll32/Makefile: programs/rundll32/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/taskmgr/Makefile: programs/taskmgr/Makefile.in programs/Makeprog.rules diff --git a/configure.ac b/configure.ac index b951604..253d72c 100644 --- a/configure.ac +++ b/configure.ac @@ -1866,6 +1866,7 @@ AC_CONFIG_FILES([programs/regedit/Makefi AC_CONFIG_FILES([programs/regsvr32/Makefile]) AC_CONFIG_FILES([programs/rpcss/Makefile]) AC_CONFIG_FILES([programs/rundll32/Makefile]) +AC_CONFIG_FILES([programs/services/Makefile]) AC_CONFIG_FILES([programs/spoolsv/Makefile]) AC_CONFIG_FILES([programs/start/Makefile]) AC_CONFIG_FILES([programs/taskmgr/Makefile]) diff --git a/programs/Makefile.in b/programs/Makefile.in index 1a3d3d5..4e7121a 100644 --- a/programs/Makefile.in +++ b/programs/Makefile.in @@ -25,6 +25,7 @@ SUBDIRS = \ regsvr32 \ rpcss \ rundll32 \ + services \ spoolsv \ start \ taskmgr \ @@ -68,6 +69,7 @@ INSTALLSUBDIRS = \ regsvr32 \ rpcss \ rundll32 \ + services \ spoolsv \ start \ taskmgr \ 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 + +@MAKE_PROG_RULES@ + +@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..731c9b0 --- /dev/null +++ b/programs/services/services.c @@ -0,0 +1,28 @@ +/* + * Services.exe - this program 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 + +int main(int argc, char *argv[]) +{ + return 0; +} -- 1.4.1