public class W32ServiceManager extends Object
Modifier and Type | Field and Description |
---|---|
(package private) String |
_databaseName |
(package private) Winsvc.SC_HANDLE |
_handle |
(package private) String |
_machineName |
Constructor and Description |
---|
W32ServiceManager() |
W32ServiceManager(String machineName,
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(String serviceName,
int permissions)
Opens a Service.
|
Winsvc.SC_HANDLE _handle
String _machineName
String _databaseName
public void open(int permissions)
permissions
- Permissions.public void close()
public W32Service openService(String serviceName, int permissions)
serviceName
- Service name.permissions
- Permissions.public Winsvc.SC_HANDLE getHandle()