public interface Winsvc
Modifier and Type | Interface and Description |
---|---|
static class |
Winsvc.ChangeServiceConfig2Info |
static class |
Winsvc.ENUM_SERVICE_STATUS
Contains the name of a service in a service control manager database and
information about that service.
|
static class |
Winsvc.ENUM_SERVICE_STATUS_PROCESS
Contains the name of a service in a service control manager database and
information about the service.
|
static interface |
Winsvc.Handler
An application-defined callback function used with the
RegisterServiceCtrlHandler function.
|
static interface |
Winsvc.HandlerEx
An application-defined callback function used with the
RegisterServiceCtrlHandlerEx function.
|
static class |
Winsvc.SC_ACTION
Represents an action that the service control manager can perform.
|
static class |
Winsvc.SC_HANDLE |
static class |
Winsvc.SC_STATUS_TYPE
The SC_STATUS_TYPE enumeration type contains values
|
static class |
Winsvc.SERVICE_DESCRIPTION
Contains a service description.
|
static class |
Winsvc.SERVICE_FAILURE_ACTIONS
Represents the action the service controller should take on each failure of a service.
|
static class |
Winsvc.SERVICE_FAILURE_ACTIONS_FLAG
Contains the failure actions flag setting of a service.
|
static interface |
Winsvc.SERVICE_MAIN_FUNCTION
The entry point for a service.
|
static class |
Winsvc.SERVICE_STATUS
Contains status information for a service.
|
static class |
Winsvc.SERVICE_STATUS_HANDLE |
static class |
Winsvc.SERVICE_STATUS_PROCESS
Contains process status information for a service.
|
static class |
Winsvc.SERVICE_TABLE_ENTRY
Specifies the ServiceMain function for a service that can run in the
calling process.
|
static final int SERVICE_RUNS_IN_SYSTEM_PROCESS
static final int SC_MANAGER_CONNECT
static final int SC_MANAGER_CREATE_SERVICE
static final int SC_MANAGER_ENUMERATE_SERVICE
static final int SC_MANAGER_LOCK
static final int SC_MANAGER_QUERY_LOCK_STATUS
static final int SC_MANAGER_MODIFY_BOOT_CONFIG
static final int SC_MANAGER_ALL_ACCESS
static final int SERVICE_QUERY_CONFIG
Advapi32.QueryServiceConfig2(com.sun.jna.platform.win32.Winsvc.SC_HANDLE, int, com.sun.jna.Pointer, int, com.sun.jna.ptr.IntByReference)
functions to query the service configuration.static final int SERVICE_CHANGE_CONFIG
Advapi32.ChangeServiceConfig2(com.sun.jna.platform.win32.Winsvc.SC_HANDLE, int, com.sun.jna.platform.win32.Winsvc.ChangeServiceConfig2Info)
function
to change the service configuration. Because this grants the caller the
right to change the executable file that the system runs, it should be
granted only to administrators.static final int SERVICE_QUERY_STATUS
Advapi32.QueryServiceStatusEx(com.sun.jna.platform.win32.Winsvc.SC_HANDLE, int, com.sun.jna.platform.win32.Winsvc.SERVICE_STATUS_PROCESS, int, com.sun.jna.ptr.IntByReference)
function
to ask the service control manager about the status of the service.
Required to call the NotifyServiceStatusChange function to receive notification when a service changes status.
static final int SERVICE_ENUMERATE_DEPENDENTS
static final int SERVICE_START
Advapi32.StartService(com.sun.jna.platform.win32.Winsvc.SC_HANDLE, int, java.lang.String[])
function to
start the service.static final int SERVICE_STOP
Advapi32.ControlService(com.sun.jna.platform.win32.Winsvc.SC_HANDLE, int, com.sun.jna.platform.win32.Winsvc.SERVICE_STATUS)
function to
stop the service.static final int SERVICE_PAUSE_CONTINUE
Advapi32.ControlService(com.sun.jna.platform.win32.Winsvc.SC_HANDLE, int, com.sun.jna.platform.win32.Winsvc.SERVICE_STATUS)
function to
pause or continue the service.static final int SERVICE_INTERROGATE
Advapi32.ControlService(com.sun.jna.platform.win32.Winsvc.SC_HANDLE, int, com.sun.jna.platform.win32.Winsvc.SERVICE_STATUS)
function to
pause or continue the service.static final int SERVICE_USER_DEFINED_CONTROL
Advapi32.ControlService(com.sun.jna.platform.win32.Winsvc.SC_HANDLE, int, com.sun.jna.platform.win32.Winsvc.SERVICE_STATUS)
function to
ask the service to report its status immediately.static final int SERVICE_ALL_ACCESS
static final int SERVICE_ACTIVE
static final int SERVICE_INACTIVE
static final int SERVICE_STATE_ALL
static final int SERVICE_CONTROL_STOP
SERVICE_STOP
access right.
After sending the stop request to a service, you should not send other controls to the service.
static final int SERVICE_CONTROL_PAUSE
SERVICE_PAUSE_CONTINUE
access right.static final int SERVICE_CONTROL_CONTINUE
SERVICE_PAUSE_CONTINUE
access right.static final int SERVICE_CONTROL_INTERROGATE
SERVICE_INTERROGATE
access right.
Note that this control is not generally useful as the SCM is aware of the current state of the service.
static final int SERVICE_CONTROL_SHUTDOWN
static final int SERVICE_CONTROL_PARAMCHANGE
static final int SERVICE_CONTROL_NETBINDADD
SERVICE_PAUSE_CONTINUE
access
right. However, this control code has been deprecated; use Plug and Play
functionality instead.static final int SERVICE_CONTROL_NETBINDREMOVE
SERVICE_PAUSE_CONTINUE
access
right. However, this control code has been deprecated; use Plug and Play
functionality instead.static final int SERVICE_CONTROL_NETBINDENABLE
SERVICE_PAUSE_CONTINUE
access
right. However, this control code has been deprecated; use Plug and Play
functionality instead.static final int SERVICE_CONTROL_NETBINDDISABLE
SERVICE_PAUSE_CONTINUE
access
right. However, this control code has been deprecated; use Plug and Play
functionality instead.static final int SERVICE_CONTROL_DEVICEEVENT
static final int SERVICE_CONTROL_HARDWAREPROFILECHANGE
static final int SERVICE_CONTROL_POWEREVENT
static final int SERVICE_CONTROL_SESSIONCHANGE
static final int SERVICE_CONTROL_PRESHUTDOWN
static final int SERVICE_CONTROL_TIMECHANGE
static final int SERVICE_CONTROL_TRIGGEREVENT
static final int SERVICE_CONTROL_USERMODEREBOOT
static final int SERVICE_STOPPED
static final int SERVICE_START_PENDING
static final int SERVICE_STOP_PENDING
static final int SERVICE_RUNNING
static final int SERVICE_CONTINUE_PENDING
static final int SERVICE_PAUSE_PENDING
static final int SERVICE_PAUSED
static final int SERVICE_ACCEPT_STOP
static final int SERVICE_ACCEPT_PAUSE_CONTINUE
static final int SERVICE_ACCEPT_SHUTDOWN
static final int SERVICE_ACCEPT_PARAMCHANGE
static final int SERVICE_ACCEPT_NETBINDCHANGE
static final int SERVICE_ACCEPT_HARDWAREPROFILECHANGE
static final int SERVICE_ACCEPT_POWEREVENT
static final int SERVICE_ACCEPT_SESSIONCHANGE
static final int SERVICE_ACCEPT_PRESHUTDOWN
static final int SERVICE_ACCEPT_TIMECHANGE
static final int SERVICE_ACCEPT_TRIGGEREVENT
static final int SERVICE_CONFIG_DESCRIPTION
static final int SERVICE_CONFIG_FAILURE_ACTIONS
static final int SERVICE_CONFIG_DELAYED_AUTO_START_INFO
static final int SERVICE_CONFIG_FAILURE_ACTIONS_FLAG
static final int SERVICE_CONFIG_SERVICE_SID_INFO
static final int SERVICE_CONFIG_REQUIRED_PRIVILEGES_INFO
static final int SERVICE_CONFIG_PRESHUTDOWN_INFO
static final int SERVICE_CONFIG_TRIGGER_INFO
static final int SERVICE_CONFIG_PREFERRED_NODE
static final int SERVICE_CONFIG_LAUNCH_PROTECTED
static final int SC_ACTION_NONE
static final int SC_ACTION_RESTART
static final int SC_ACTION_REBOOT
static final int SC_ACTION_RUN_COMMAND
static final int SC_ENUM_PROCESS_INFO