public class W32ServiceManager
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
(package private) java.lang.String |
_databaseName |
(package private) Winsvc.SC_HANDLE |
_handle |
(package private) java.lang.String |
_machineName |
Constructor and Description |
---|
W32ServiceManager() |
W32ServiceManager(java.lang.String machineName,
java.lang.String databaseName) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the previously opened Service Manager.
|
Winsvc.SC_HANDLE |
getHandle()
Gets the service manager handle.
|
void |
open(int permissions)
Opens the Service Manager with the supplied permissions.
|
W32Service |
openService(java.lang.String serviceName,
int permissions)
Opens a Service.
|
Winsvc.SC_HANDLE _handle
java.lang.String _machineName
java.lang.String _databaseName
public W32ServiceManager()
public W32ServiceManager(java.lang.String machineName, java.lang.String databaseName)
public void open(int permissions)
permissions
- Permissions.public void close()
public W32Service openService(java.lang.String serviceName, int permissions)
serviceName
- Service name.permissions
- Permissions.public Winsvc.SC_HANDLE getHandle()