| Access | Constructor and Description |
|---|---|
| public | W32Service(Winsvc.
A handle to the service. This handle is returned by the
CreateService or OpenService function, and it must have the
SERVICE_QUERY_STATUS access right. handleWin32 Service |
| Modifier and Type | Method and Description | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| private void | |||||||||
| public void | |||||||||
| public void | |||||||||
| public Winsvc. | Returns: array of ENUM_SERVICE_STATUS structures that receives the name and service status information for each dependent service in the database.The state of the services to be enumerated. This
parameter can be one of the following values.
dwServiceState)
Retrieves the name and status of each service that depends on the specified service; that is, the specified service must be running before the dependent services can run. | ||||||||
| public Winsvc. | |||||||||
| public boolean | |||||||||
| public Winsvc. | |||||||||
| private boolean | |||||||||
| public void | |||||||||
| private Pointer | |||||||||
| public Winsvc. | Returns: Service status informationRetrieves the current status of the specified service based on the specified information level. | ||||||||
| pack-priv int | |||||||||
| public void | |||||||||
| public void | |||||||||
| public void | |||||||||
| public void | |||||||||
| public void | |||||||||
| public void |
| _handle | back to summary |
|---|---|
| pack-priv Winsvc. | |
| W32Service | back to summary |
|---|---|
| public W32Service(Winsvc. Win32 Service | |
| addShutdownPrivilegeToProcess | back to summary |
|---|---|
| private void addShutdownPrivilegeToProcess() | |
| close | back to summary |
|---|---|
| public void close() Implements java. Close service.
| |
| continueService | back to summary |
|---|---|
| public void continueService() Continue service. | |
| enumDependentServices | back to summary | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| public Winsvc. Retrieves the name and status of each service that depends on the specified service; that is, the specified service must be running before the dependent services can run.
| |||||||||
| getFailureActions | back to summary |
|---|---|
| public Winsvc. Get the failure actions of the specified service. Corresponds to QueryServiceConfig2 with parameter dwInfoLevel set to SERVICE_CONFIG_FAILURE_ACTIONS. | |
| getFailureActionsFlag | back to summary |
|---|---|
| public boolean getFailureActionsFlag() Get the failure actions flag of the specified service. Corresponds to QueryServiceConfig2 with parameter dwInfoLevel set to SERVICE_CONFIG_FAILURE_ACTIONS_FLAG. | |
| getHandle | back to summary |
|---|---|
| public Winsvc. Gets the service handle. | |
| isPendingState | back to summary |
|---|---|
| private boolean isPendingState(int state) | |
| pauseService | back to summary |
|---|---|
| public void pauseService() Pause service. | |
| queryServiceConfig2 | back to summary |
|---|---|
| private Pointer queryServiceConfig2(int type) | |
| queryStatus | back to summary |
|---|---|
| public Winsvc. Retrieves the current status of the specified service based on the specified information level.
| |
| sanitizeWaitTime | back to summary |
|---|---|
| pack-priv int sanitizeWaitTime(int dwWaitHint) do not wait longer than the wait hint. A good interval is one-tenth the wait hint, but no less than 1 second and no more than 10 seconds. | |
| setFailureActions | back to summary |
|---|---|
| public void setFailureActions(List<Winsvc. Set the failure actions of the specified service. Corresponds to ChangeServiceConfig2 with parameter dwInfoLevel set to SERVICE_CONFIG_FAILURE_ACTIONS. | |
| setFailureActionsFlag | back to summary |
|---|---|
| public void setFailureActionsFlag(boolean flagValue) Set the failure action flag of the specified service. Corresponds to ChangeServiceConfig2 with parameter dwInfoLevel set to SERVICE_CONFIG_FAILURE_ACTIONS_FLAG. | |
| startService | back to summary |
|---|---|
| public void startService() | |
| stopService | back to summary |
|---|---|
| public void stopService() Stop service. | |
| stopService | back to summary |
|---|---|
| public void stopService(long timeout) Stop service.
| |
| waitForNonPendingState | back to summary |
|---|---|
| public void waitForNonPendingState() Wait for the state to change to something other than a pending state. | |