com.denova.runtime
Class WindowsServices

java.lang.Object
  |
  +--com.denova.runtime.WindowsServices
All Implemented Interfaces:
WindowsConstants

public class WindowsServices
extends java.lang.Object
implements WindowsConstants

Manage Windows services.

Author:
DeNova Copyright © 1997-2008 DeNova All rights reserved worldwide.

Field Summary
 
Fields inherited from interface com.denova.runtime.WindowsConstants
AddRegistryEntry, AllUsers, AppendRegistryEntry, BinaryType, CurrentUser, DeleteRegistryEntry, DesktopSpecFilename, DirectoryResultsFilename, DWordType, EnumKeyRegistryEntry, EnumValueRegistryEntry, EnvOutputFilename, ExistsRegistryEntry, FreeDiskSpaceResultsFilename, InvokerFilename, MenuSpecFilename, NtResultsFilename, PathOutputFilename, PrependRegistryEntry, QueryRegistryEntry, RegistryResultsFilename, RegistrySpecFilename, ReplaceRegistryEntry, ShortnameFilename, StringType, WindowsAddDesktop, WindowsAddProgramsMenu, WindowsAddStartupMenu, WindowsAppDataCommand, WindowsCmdLogFilename, WindowsCommandsFilename, WindowsDelDesktop, WindowsDelProgramsMenu, WindowsDelStartupMenu, WindowsDesktopCommand, WindowsDesktopDirCommand, WindowsDirCommand, WindowsEnvVariableCommand, WindowsFreeDiskSpaceCommand, WindowsMenusDirCommand, WindowsNtCommand, WindowsPathCommand, WindowsPathShortenerCommand, WindowsProgramManagerDirCommand, WindowsProgramsMenuCommand, WindowsRegistryEditorCommand, WindowsStartupMenuCommand, WindowsStartupMenusDirCommand
 
Constructor Summary
WindowsServices()
           
 
Method Summary
 boolean installService(java.lang.String serviceName, java.lang.String serviceLabel, java.lang.String executable, boolean automatic)
           
 boolean removeService(java.lang.String serviceName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WindowsServices

public WindowsServices()
Method Detail

installService

public boolean installService(java.lang.String serviceName,
                              java.lang.String serviceLabel,
                              java.lang.String executable,
                              boolean automatic)
Parameters:
serviceName - is the name used internally by SCM
serviceLabel - is the name that displays in the Service Control Panel
executable - is the pathname to the executable; use double quotes for filenames with spaces
automatic - is set true, if you want the service invoked automatically on startup

Returns:
true if service was successfull installed.


removeService

public boolean removeService(java.lang.String serviceName)
Parameters:
serviceName - is the name used internally by SCM

Returns:
true if service was successfull removed.