| Modifier and Type | Field and Description |
|---|---|
| pack-priv String | |
| pack-priv Winsvc. | |
| pack-priv String |
| Access | Constructor and Description |
|---|---|
| public | W32ServiceManager()
Instantiate a W32ServiceManager for the local computer and the SERVICES_ACTIVE_DATABASE ("ServicesActive") database. |
| public | W32ServiceManager(int
requested permissions for access permissions)Instantiate a W32ServiceManager for the local computer and the SERVICES_ACTIVE_DATABASE ("ServicesActive") database. |
| public | W32ServiceManager(String
The name of the target computer. If the pointer is
NULL or points to an empty string, the function
connects to the service control manager on the local
computer. machineName, String The name of the service control manager database.
This parameter should be set to "ServicesActive". If
it is NULL, the "ServicesActive"
(SERVICES_ACTIVE_DATABASE) database is opened by
default.
databaseName)
The connection is not established until Instantiate a W32ServiceManager. |
| public | W32ServiceManager(String
The name of the target computer. If the pointer is
NULL or points to an empty string, the function
connects to the service control manager on the local
computer. machineName, String The name of the service control manager database.
This parameter should be set to "ServicesActive". If
it is NULL, the "ServicesActive"
(SERVICES_ACTIVE_DATABASE) database is opened by
default. databaseName, int requested permissions for access permissions)Instantiate a W32ServiceManager. |
| Modifier and Type | Method and Description | ||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| public void | |||||||||||||||||||||||
| public Winsvc. | Returns: array of ENUM_SERVICE_STATUS_PROCESS structures.The type of services to be enumerated. This
parameter can be one or more of the following
values.
dwServiceType, int
The state of the services to be enumerated. This
parameter can be one of the following values.
dwServiceState, String
The load-order group name. If this parameter is a
string, the only services enumerated are those that
belong to the group that has the name specified by
the string. If this parameter is an empty string,
only services that do not belong to any group are
enumerated. If this parameter is NULL, group
membership is ignored and all services are
enumerated. groupName)Enumerates services in the specified service control manager database. | ||||||||||||||||||||||
| public Winsvc. | |||||||||||||||||||||||
| public void | |||||||||||||||||||||||
| public W32Service | Returns: Returns an opened service.Service name. serviceName, int Permissions. permissions)Opens a Service. |
| _databaseName | back to summary |
|---|---|
| pack-priv String _databaseName | |
| _handle | back to summary |
|---|---|
| pack-priv Winsvc. | |
| _machineName | back to summary |
|---|---|
| pack-priv String _machineName | |
| W32ServiceManager | back to summary |
|---|---|
| public W32ServiceManager() Instantiate a W32ServiceManager for the local computer and the SERVICES_ACTIVE_DATABASE ("ServicesActive") database.
The connection is not established until | |
| W32ServiceManager | back to summary |
|---|---|
| public W32ServiceManager(int permissions) Instantiate a W32ServiceManager for the local computer and the SERVICES_ACTIVE_DATABASE ("ServicesActive") database.
A connection is opened directly with the requested permissions.
| |
| W32ServiceManager | back to summary |
|---|---|
| public W32ServiceManager(String machineName, String databaseName) Instantiate a W32ServiceManager.
| |
| W32ServiceManager | back to summary |
|---|---|
| public W32ServiceManager(String machineName, String databaseName, int permissions) Instantiate a W32ServiceManager.
A connection is opened directly with the requested permissions.
| |
| close | back to summary |
|---|---|
| public void close() Implements java. Closes the previously opened Service Manager.
| |
| enumServicesStatusExProcess | back to summary | ||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| public Winsvc. Enumerates services in the specified service control manager database. The name and status of each service are provided, along with additional data based on the specified information level.
| |||||||||||||||||||||||
| getHandle | back to summary |
|---|---|
| public Winsvc. Gets the service manager handle. | |
| open | back to summary |
|---|---|
| public void open(int permissions) (Re-)Opens the Service Manager with the supplied permissions.
| |
| openService | back to summary |
|---|---|
| public W32Service openService(String serviceName, int permissions) Opens a Service.
| |