Package com.sun.jna.platform.win32
Schnittstelle Winsvc
public interface Winsvc
This module defines the 32-Bit Windows types and constants that are defined
by NT, but exposed through the Win32 API.
Ported from Winsvc.h.
Microsoft Windows SDK 7.0A.
- Autor:
- EugineLev
-
Verschachtelte Klassen - Übersicht
Verschachtelte KlassenModifizierer und TypSchnittstelleBeschreibungstatic class
static class
Contains the name of a service in a service control manager database and information about that service.static class
Contains the name of a service in a service control manager database and information about the service.static interface
An application-defined callback function used with the RegisterServiceCtrlHandler function.static interface
An application-defined callback function used with the RegisterServiceCtrlHandlerEx function.static class
Represents an action that the service control manager can perform.static class
static class
The SC_STATUS_TYPE enumeration type contains valuesstatic class
Contains a service description.static class
Represents the action the service controller should take on each failure of a service.static class
Contains the failure actions flag setting of a service.static interface
The entry point for a service.static class
Contains status information for a service.static class
static class
Contains process status information for a service.static class
Specifies the ServiceMain function for a service that can run in the calling process. -
Feldübersicht
FelderModifizierer und TypFeldBeschreibungstatic final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
Required to call the ChangeServiceConfig orAdvapi32.ChangeServiceConfig2(com.sun.jna.platform.win32.Winsvc.SC_HANDLE, int, com.sun.jna.platform.win32.Winsvc.ChangeServiceConfig2Info)
function to change the service configuration.static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
Notifies a service that its startup parameters have changed.static final int
static final int
static final int
Notifies a service that it should report its current status information to the service control manager.static final int
Notifies a network service that there is a new component for binding.static final int
Notifies a network service that one of its bindings has been disabled.static final int
Notifies a network service that a disabled binding has been enabled.static final int
Notifies a network service that a component for binding has been removed.static final int
static final int
Notifies a service that it should pause.static final int
static final int
static final int
static final int
static final int
Notifies a service that it should stop.static final int
static final int
static final int
static final int
static final int
static final int
Required to call theAdvapi32.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
Required to call theAdvapi32.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
static final int
static final int
Required to call the QueryServiceConfig andAdvapi32.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
Required to call the QueryServiceStatus orAdvapi32.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.static final int
static final int
static final int
Required to call theAdvapi32.StartService(com.sun.jna.platform.win32.Winsvc.SC_HANDLE, int, java.lang.String[])
function to start the service.static final int
static final int
static final int
Required to call theAdvapi32.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
static final int
static final int
Required to call theAdvapi32.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.
-
Felddetails
-
SERVICE_RUNS_IN_SYSTEM_PROCESS
static final int SERVICE_RUNS_IN_SYSTEM_PROCESS- Siehe auch:
-
SC_MANAGER_CONNECT
static final int SC_MANAGER_CONNECT- Siehe auch:
-
SC_MANAGER_CREATE_SERVICE
static final int SC_MANAGER_CREATE_SERVICE- Siehe auch:
-
SC_MANAGER_ENUMERATE_SERVICE
static final int SC_MANAGER_ENUMERATE_SERVICE- Siehe auch:
-
SC_MANAGER_LOCK
static final int SC_MANAGER_LOCK- Siehe auch:
-
SC_MANAGER_QUERY_LOCK_STATUS
static final int SC_MANAGER_QUERY_LOCK_STATUS- Siehe auch:
-
SC_MANAGER_MODIFY_BOOT_CONFIG
static final int SC_MANAGER_MODIFY_BOOT_CONFIG- Siehe auch:
-
SC_MANAGER_ALL_ACCESS
static final int SC_MANAGER_ALL_ACCESS- Siehe auch:
-
SERVICE_QUERY_CONFIG
static final int SERVICE_QUERY_CONFIGRequired to call the QueryServiceConfig andAdvapi32.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.- Siehe auch:
-
SERVICE_CHANGE_CONFIG
static final int SERVICE_CHANGE_CONFIGRequired to call the ChangeServiceConfig orAdvapi32.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.- Siehe auch:
-
SERVICE_QUERY_STATUS
static final int SERVICE_QUERY_STATUSRequired to call the QueryServiceStatus orAdvapi32.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.
- Siehe auch:
-
SERVICE_ENUMERATE_DEPENDENTS
static final int SERVICE_ENUMERATE_DEPENDENTS- Siehe auch:
-
SERVICE_START
static final int SERVICE_STARTRequired to call theAdvapi32.StartService(com.sun.jna.platform.win32.Winsvc.SC_HANDLE, int, java.lang.String[])
function to start the service.- Siehe auch:
-
SERVICE_STOP
static final int SERVICE_STOPRequired to call theAdvapi32.ControlService(com.sun.jna.platform.win32.Winsvc.SC_HANDLE, int, com.sun.jna.platform.win32.Winsvc.SERVICE_STATUS)
function to stop the service.- Siehe auch:
-
SERVICE_PAUSE_CONTINUE
static final int SERVICE_PAUSE_CONTINUERequired to call theAdvapi32.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.- Siehe auch:
-
SERVICE_INTERROGATE
static final int SERVICE_INTERROGATERequired to call theAdvapi32.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.- Siehe auch:
-
SERVICE_USER_DEFINED_CONTROL
static final int SERVICE_USER_DEFINED_CONTROLRequired to call theAdvapi32.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.- Siehe auch:
-
SERVICE_ALL_ACCESS
static final int SERVICE_ALL_ACCESS- Siehe auch:
-
SERVICE_ACTIVE
static final int SERVICE_ACTIVE- Siehe auch:
-
SERVICE_INACTIVE
static final int SERVICE_INACTIVE- Siehe auch:
-
SERVICE_STATE_ALL
static final int SERVICE_STATE_ALL- Siehe auch:
-
SERVICE_CONTROL_STOP
static final int SERVICE_CONTROL_STOPNotifies a service that it should stop. The hService handle must have theSERVICE_STOP
access right.After sending the stop request to a service, you should not send other controls to the service.
- Siehe auch:
-
SERVICE_CONTROL_PAUSE
static final int SERVICE_CONTROL_PAUSENotifies a service that it should pause. The hService handle must have theSERVICE_PAUSE_CONTINUE
access right.- Siehe auch:
-
SERVICE_CONTROL_CONTINUE
static final int SERVICE_CONTROL_CONTINUENotifies a service that its startup parameters have changed. The hService handle must have theSERVICE_PAUSE_CONTINUE
access right.- Siehe auch:
-
SERVICE_CONTROL_INTERROGATE
static final int SERVICE_CONTROL_INTERROGATENotifies a service that it should report its current status information to the service control manager. The hService handle must have theSERVICE_INTERROGATE
access right.Note that this control is not generally useful as the SCM is aware of the current state of the service.
- Siehe auch:
-
SERVICE_CONTROL_SHUTDOWN
static final int SERVICE_CONTROL_SHUTDOWN- Siehe auch:
-
SERVICE_CONTROL_PARAMCHANGE
static final int SERVICE_CONTROL_PARAMCHANGE- Siehe auch:
-
SERVICE_CONTROL_NETBINDADD
static final int SERVICE_CONTROL_NETBINDADDNotifies a network service that there is a new component for binding. The hService handle must have theSERVICE_PAUSE_CONTINUE
access right. However, this control code has been deprecated; use Plug and Play functionality instead.- Siehe auch:
-
SERVICE_CONTROL_NETBINDREMOVE
static final int SERVICE_CONTROL_NETBINDREMOVENotifies a network service that a component for binding has been removed. The hService handle must have theSERVICE_PAUSE_CONTINUE
access right. However, this control code has been deprecated; use Plug and Play functionality instead.- Siehe auch:
-
SERVICE_CONTROL_NETBINDENABLE
static final int SERVICE_CONTROL_NETBINDENABLENotifies a network service that a disabled binding has been enabled. The hService handle must have theSERVICE_PAUSE_CONTINUE
access right. However, this control code has been deprecated; use Plug and Play functionality instead.- Siehe auch:
-
SERVICE_CONTROL_NETBINDDISABLE
static final int SERVICE_CONTROL_NETBINDDISABLENotifies a network service that one of its bindings has been disabled. The hService handle must have theSERVICE_PAUSE_CONTINUE
access right. However, this control code has been deprecated; use Plug and Play functionality instead.- Siehe auch:
-
SERVICE_CONTROL_DEVICEEVENT
static final int SERVICE_CONTROL_DEVICEEVENT- Siehe auch:
-
SERVICE_CONTROL_HARDWAREPROFILECHANGE
static final int SERVICE_CONTROL_HARDWAREPROFILECHANGE- Siehe auch:
-
SERVICE_CONTROL_POWEREVENT
static final int SERVICE_CONTROL_POWEREVENT- Siehe auch:
-
SERVICE_CONTROL_SESSIONCHANGE
static final int SERVICE_CONTROL_SESSIONCHANGE- Siehe auch:
-
SERVICE_CONTROL_PRESHUTDOWN
static final int SERVICE_CONTROL_PRESHUTDOWN- Siehe auch:
-
SERVICE_CONTROL_TIMECHANGE
static final int SERVICE_CONTROL_TIMECHANGE- Siehe auch:
-
SERVICE_CONTROL_TRIGGEREVENT
static final int SERVICE_CONTROL_TRIGGEREVENT- Siehe auch:
-
SERVICE_CONTROL_USERMODEREBOOT
static final int SERVICE_CONTROL_USERMODEREBOOT- Siehe auch:
-
SERVICE_STOPPED
static final int SERVICE_STOPPED- Siehe auch:
-
SERVICE_START_PENDING
static final int SERVICE_START_PENDING- Siehe auch:
-
SERVICE_STOP_PENDING
static final int SERVICE_STOP_PENDING- Siehe auch:
-
SERVICE_RUNNING
static final int SERVICE_RUNNING- Siehe auch:
-
SERVICE_CONTINUE_PENDING
static final int SERVICE_CONTINUE_PENDING- Siehe auch:
-
SERVICE_PAUSE_PENDING
static final int SERVICE_PAUSE_PENDING- Siehe auch:
-
SERVICE_PAUSED
static final int SERVICE_PAUSED- Siehe auch:
-
SERVICE_ACCEPT_STOP
static final int SERVICE_ACCEPT_STOP- Siehe auch:
-
SERVICE_ACCEPT_PAUSE_CONTINUE
static final int SERVICE_ACCEPT_PAUSE_CONTINUE- Siehe auch:
-
SERVICE_ACCEPT_SHUTDOWN
static final int SERVICE_ACCEPT_SHUTDOWN- Siehe auch:
-
SERVICE_ACCEPT_PARAMCHANGE
static final int SERVICE_ACCEPT_PARAMCHANGE- Siehe auch:
-
SERVICE_ACCEPT_NETBINDCHANGE
static final int SERVICE_ACCEPT_NETBINDCHANGE- Siehe auch:
-
SERVICE_ACCEPT_HARDWAREPROFILECHANGE
static final int SERVICE_ACCEPT_HARDWAREPROFILECHANGE- Siehe auch:
-
SERVICE_ACCEPT_POWEREVENT
static final int SERVICE_ACCEPT_POWEREVENT- Siehe auch:
-
SERVICE_ACCEPT_SESSIONCHANGE
static final int SERVICE_ACCEPT_SESSIONCHANGE- Siehe auch:
-
SERVICE_ACCEPT_PRESHUTDOWN
static final int SERVICE_ACCEPT_PRESHUTDOWN- Siehe auch:
-
SERVICE_ACCEPT_TIMECHANGE
static final int SERVICE_ACCEPT_TIMECHANGE- Siehe auch:
-
SERVICE_ACCEPT_TRIGGEREVENT
static final int SERVICE_ACCEPT_TRIGGEREVENT- Siehe auch:
-
SERVICE_CONFIG_DESCRIPTION
static final int SERVICE_CONFIG_DESCRIPTION- Siehe auch:
-
SERVICE_CONFIG_FAILURE_ACTIONS
static final int SERVICE_CONFIG_FAILURE_ACTIONS- Siehe auch:
-
SERVICE_CONFIG_DELAYED_AUTO_START_INFO
static final int SERVICE_CONFIG_DELAYED_AUTO_START_INFO- Siehe auch:
-
SERVICE_CONFIG_FAILURE_ACTIONS_FLAG
static final int SERVICE_CONFIG_FAILURE_ACTIONS_FLAG- Siehe auch:
-
SERVICE_CONFIG_SERVICE_SID_INFO
static final int SERVICE_CONFIG_SERVICE_SID_INFO- Siehe auch:
-
SERVICE_CONFIG_REQUIRED_PRIVILEGES_INFO
static final int SERVICE_CONFIG_REQUIRED_PRIVILEGES_INFO- Siehe auch:
-
SERVICE_CONFIG_PRESHUTDOWN_INFO
static final int SERVICE_CONFIG_PRESHUTDOWN_INFO- Siehe auch:
-
SERVICE_CONFIG_TRIGGER_INFO
static final int SERVICE_CONFIG_TRIGGER_INFO- Siehe auch:
-
SERVICE_CONFIG_PREFERRED_NODE
static final int SERVICE_CONFIG_PREFERRED_NODE- Siehe auch:
-
SERVICE_CONFIG_LAUNCH_PROTECTED
static final int SERVICE_CONFIG_LAUNCH_PROTECTED- Siehe auch:
-
SC_ACTION_NONE
static final int SC_ACTION_NONE- Siehe auch:
-
SC_ACTION_RESTART
static final int SC_ACTION_RESTART- Siehe auch:
-
SC_ACTION_REBOOT
static final int SC_ACTION_REBOOT- Siehe auch:
-
SC_ACTION_RUN_COMMAND
static final int SC_ACTION_RUN_COMMAND- Siehe auch:
-
SC_ENUM_PROCESS_INFO
static final int SC_ENUM_PROCESS_INFO- Siehe auch:
-