svcmgr.exe README
16.03.2000
______________________________________

OVERVIEW

Svcmgr.exe is a command line application for Windows NT/2000 which allows user to:
- list services (both win32 and driver services)
- list services with dependent service data (both win32 and driver services)
- stop services
- start services

All of the above can be done on the local machine or remotely. Some options may not be available for users who don't have administrative rights.

USING svcmgr.exe

The syntax of this command is:
svcmgr [options] [service name] [machine name] 

Options:
-list 		- lists services (default)
-active 	- works with active services (default)
-inactive 	- works with inactive services
-all		- works with active and inactive services
-service 	- works with win32 services (default)
-driver 	- works with driver services
-both		- works with win32 and driver services	
-dependent 	- displays dependent service data
-dep 		- same as -dependent
-stop		- stop sepcified service
-start		- start specified service

Machine name must be given as \\<machine name>. Service name is NOT service display name.

Examples:
svcmgr			 - lists active services on local machine
svcmgr -inactive -driver - lists inactive driver services on local machine
svcmgr -inactive \\dumle - lists inactive services on machine named dumle
svcmgr -stop alerter \\dumle - tries to stop alerter service on machine named dumle
svcmgr -dep -driver 	 - lists driver services and their dependent services on local 			   machine

COMPILING svcmgr.exe

Makefiles are provided for GNU gcc 2.95.2 mingw32 version and Borland C++ 5.5 free compiler. To compile with gcc, use make -f gnumakefile. To compile with Borland C++ 5.5, use make. GNU gcc 2.95.2 is available at http://www.xraylith.wisc.edu/~khan/software/gnu-win32/ and Borland C++ 5.5 compiler is available at http://www.borland.com/bcppbuilder/freecompiler/. If someone manages to compile with Microsoft Visual C++ I would be very glad if that someone would let me know.

AUTHOR

Antti Markus, antti@pld.ttu.ee
Portions of the code are based on Windows Foundation Classes (http://ourworld.compuserve.com/homepages/sam_blackburn/wfc.htm) by Samuel R. Blackburn