Package com.sun.jna.platform.win32
Interface Winsvc
- 
 public interface WinsvcThis 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.- Author:
- EugineLev
 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Interface Description static classWinsvc.ChangeServiceConfig2Infostatic classWinsvc.ENUM_SERVICE_STATUSContains the name of a service in a service control manager database and information about that service.static classWinsvc.ENUM_SERVICE_STATUS_PROCESSContains the name of a service in a service control manager database and information about the service.static interfaceWinsvc.HandlerAn application-defined callback function used with the RegisterServiceCtrlHandler function.static interfaceWinsvc.HandlerExAn application-defined callback function used with the RegisterServiceCtrlHandlerEx function.static classWinsvc.SC_ACTIONRepresents an action that the service control manager can perform.static classWinsvc.SC_HANDLEstatic classWinsvc.SC_STATUS_TYPEThe SC_STATUS_TYPE enumeration type contains valuesstatic classWinsvc.SERVICE_DESCRIPTIONContains a service description.static classWinsvc.SERVICE_FAILURE_ACTIONSRepresents the action the service controller should take on each failure of a service.static classWinsvc.SERVICE_FAILURE_ACTIONS_FLAGContains the failure actions flag setting of a service.static interfaceWinsvc.SERVICE_MAIN_FUNCTIONThe entry point for a service.static classWinsvc.SERVICE_STATUSContains status information for a service.static classWinsvc.SERVICE_STATUS_HANDLEstatic classWinsvc.SERVICE_STATUS_PROCESSContains process status information for a service.static classWinsvc.SERVICE_TABLE_ENTRYSpecifies the ServiceMain function for a service that can run in the calling process.
 - 
Field Summary
 
- 
- 
- 
Field Detail- 
SERVICE_RUNS_IN_SYSTEM_PROCESSstatic final int SERVICE_RUNS_IN_SYSTEM_PROCESS - See Also:
- Constant Field Values
 
 - 
SC_MANAGER_CONNECTstatic final int SC_MANAGER_CONNECT - See Also:
- Constant Field Values
 
 - 
SC_MANAGER_CREATE_SERVICEstatic final int SC_MANAGER_CREATE_SERVICE - See Also:
- Constant Field Values
 
 - 
SC_MANAGER_ENUMERATE_SERVICEstatic final int SC_MANAGER_ENUMERATE_SERVICE - See Also:
- Constant Field Values
 
 - 
SC_MANAGER_LOCKstatic final int SC_MANAGER_LOCK - See Also:
- Constant Field Values
 
 - 
SC_MANAGER_QUERY_LOCK_STATUSstatic final int SC_MANAGER_QUERY_LOCK_STATUS - See Also:
- Constant Field Values
 
 - 
SC_MANAGER_MODIFY_BOOT_CONFIGstatic final int SC_MANAGER_MODIFY_BOOT_CONFIG - See Also:
- Constant Field Values
 
 - 
SC_MANAGER_ALL_ACCESSstatic final int SC_MANAGER_ALL_ACCESS - See Also:
- Constant Field Values
 
 - 
SERVICE_QUERY_CONFIGstatic final int SERVICE_QUERY_CONFIG 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.- See Also:
- Constant Field Values
 
 - 
SERVICE_CHANGE_CONFIGstatic final int SERVICE_CHANGE_CONFIG 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. Because this grants the caller the right to change the executable file that the system runs, it should be granted only to administrators.- See Also:
- Constant Field Values
 
 - 
SERVICE_QUERY_STATUSstatic final int SERVICE_QUERY_STATUS 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.Required to call the NotifyServiceStatusChange function to receive notification when a service changes status. - See Also:
- Constant Field Values
 
 - 
SERVICE_ENUMERATE_DEPENDENTSstatic final int SERVICE_ENUMERATE_DEPENDENTS - See Also:
- Constant Field Values
 
 - 
SERVICE_STARTstatic final int SERVICE_START Required to call theAdvapi32.StartService(com.sun.jna.platform.win32.Winsvc.SC_HANDLE, int, java.lang.String[])function to start the service.- See Also:
- Constant Field Values
 
 - 
SERVICE_STOPstatic final int SERVICE_STOP 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.- See Also:
- Constant Field Values
 
 - 
SERVICE_PAUSE_CONTINUEstatic final int SERVICE_PAUSE_CONTINUE 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.- See Also:
- Constant Field Values
 
 - 
SERVICE_INTERROGATEstatic final int SERVICE_INTERROGATE 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.- See Also:
- Constant Field Values
 
 - 
SERVICE_USER_DEFINED_CONTROLstatic final int SERVICE_USER_DEFINED_CONTROL 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.- See Also:
- Constant Field Values
 
 - 
SERVICE_ALL_ACCESSstatic final int SERVICE_ALL_ACCESS - See Also:
- Constant Field Values
 
 - 
SERVICE_ACTIVEstatic final int SERVICE_ACTIVE - See Also:
- Constant Field Values
 
 - 
SERVICE_INACTIVEstatic final int SERVICE_INACTIVE - See Also:
- Constant Field Values
 
 - 
SERVICE_STATE_ALLstatic final int SERVICE_STATE_ALL - See Also:
- Constant Field Values
 
 - 
SERVICE_CONTROL_STOPstatic final int SERVICE_CONTROL_STOP Notifies a service that it should stop. The hService handle must have theSERVICE_STOPaccess right.After sending the stop request to a service, you should not send other controls to the service. - See Also:
- Constant Field Values
 
 - 
SERVICE_CONTROL_PAUSEstatic final int SERVICE_CONTROL_PAUSE Notifies a service that it should pause. The hService handle must have theSERVICE_PAUSE_CONTINUEaccess right.- See Also:
- Constant Field Values
 
 - 
SERVICE_CONTROL_CONTINUEstatic final int SERVICE_CONTROL_CONTINUE Notifies a service that its startup parameters have changed. The hService handle must have theSERVICE_PAUSE_CONTINUEaccess right.- See Also:
- Constant Field Values
 
 - 
SERVICE_CONTROL_INTERROGATEstatic final int SERVICE_CONTROL_INTERROGATE Notifies a service that it should report its current status information to the service control manager. The hService handle must have theSERVICE_INTERROGATEaccess right.Note that this control is not generally useful as the SCM is aware of the current state of the service. - See Also:
- Constant Field Values
 
 - 
SERVICE_CONTROL_SHUTDOWNstatic final int SERVICE_CONTROL_SHUTDOWN - See Also:
- Constant Field Values
 
 - 
SERVICE_CONTROL_PARAMCHANGEstatic final int SERVICE_CONTROL_PARAMCHANGE - See Also:
- Constant Field Values
 
 - 
SERVICE_CONTROL_NETBINDADDstatic final int SERVICE_CONTROL_NETBINDADD Notifies a network service that there is a new component for binding. The hService handle must have theSERVICE_PAUSE_CONTINUEaccess right. However, this control code has been deprecated; use Plug and Play functionality instead.- See Also:
- Constant Field Values
 
 - 
SERVICE_CONTROL_NETBINDREMOVEstatic final int SERVICE_CONTROL_NETBINDREMOVE Notifies a network service that a component for binding has been removed. The hService handle must have theSERVICE_PAUSE_CONTINUEaccess right. However, this control code has been deprecated; use Plug and Play functionality instead.- See Also:
- Constant Field Values
 
 - 
SERVICE_CONTROL_NETBINDENABLEstatic final int SERVICE_CONTROL_NETBINDENABLE Notifies a network service that a disabled binding has been enabled. The hService handle must have theSERVICE_PAUSE_CONTINUEaccess right. However, this control code has been deprecated; use Plug and Play functionality instead.- See Also:
- Constant Field Values
 
 - 
SERVICE_CONTROL_NETBINDDISABLEstatic final int SERVICE_CONTROL_NETBINDDISABLE Notifies a network service that one of its bindings has been disabled. The hService handle must have theSERVICE_PAUSE_CONTINUEaccess right. However, this control code has been deprecated; use Plug and Play functionality instead.- See Also:
- Constant Field Values
 
 - 
SERVICE_CONTROL_DEVICEEVENTstatic final int SERVICE_CONTROL_DEVICEEVENT - See Also:
- Constant Field Values
 
 - 
SERVICE_CONTROL_HARDWAREPROFILECHANGEstatic final int SERVICE_CONTROL_HARDWAREPROFILECHANGE - See Also:
- Constant Field Values
 
 - 
SERVICE_CONTROL_POWEREVENTstatic final int SERVICE_CONTROL_POWEREVENT - See Also:
- Constant Field Values
 
 - 
SERVICE_CONTROL_SESSIONCHANGEstatic final int SERVICE_CONTROL_SESSIONCHANGE - See Also:
- Constant Field Values
 
 - 
SERVICE_CONTROL_PRESHUTDOWNstatic final int SERVICE_CONTROL_PRESHUTDOWN - See Also:
- Constant Field Values
 
 - 
SERVICE_CONTROL_TIMECHANGEstatic final int SERVICE_CONTROL_TIMECHANGE - See Also:
- Constant Field Values
 
 - 
SERVICE_CONTROL_TRIGGEREVENTstatic final int SERVICE_CONTROL_TRIGGEREVENT - See Also:
- Constant Field Values
 
 - 
SERVICE_CONTROL_USERMODEREBOOTstatic final int SERVICE_CONTROL_USERMODEREBOOT - See Also:
- Constant Field Values
 
 - 
SERVICE_STOPPEDstatic final int SERVICE_STOPPED - See Also:
- Constant Field Values
 
 - 
SERVICE_START_PENDINGstatic final int SERVICE_START_PENDING - See Also:
- Constant Field Values
 
 - 
SERVICE_STOP_PENDINGstatic final int SERVICE_STOP_PENDING - See Also:
- Constant Field Values
 
 - 
SERVICE_RUNNINGstatic final int SERVICE_RUNNING - See Also:
- Constant Field Values
 
 - 
SERVICE_CONTINUE_PENDINGstatic final int SERVICE_CONTINUE_PENDING - See Also:
- Constant Field Values
 
 - 
SERVICE_PAUSE_PENDINGstatic final int SERVICE_PAUSE_PENDING - See Also:
- Constant Field Values
 
 - 
SERVICE_PAUSEDstatic final int SERVICE_PAUSED - See Also:
- Constant Field Values
 
 - 
SERVICE_ACCEPT_STOPstatic final int SERVICE_ACCEPT_STOP - See Also:
- Constant Field Values
 
 - 
SERVICE_ACCEPT_PAUSE_CONTINUEstatic final int SERVICE_ACCEPT_PAUSE_CONTINUE - See Also:
- Constant Field Values
 
 - 
SERVICE_ACCEPT_SHUTDOWNstatic final int SERVICE_ACCEPT_SHUTDOWN - See Also:
- Constant Field Values
 
 - 
SERVICE_ACCEPT_PARAMCHANGEstatic final int SERVICE_ACCEPT_PARAMCHANGE - See Also:
- Constant Field Values
 
 - 
SERVICE_ACCEPT_NETBINDCHANGEstatic final int SERVICE_ACCEPT_NETBINDCHANGE - See Also:
- Constant Field Values
 
 - 
SERVICE_ACCEPT_HARDWAREPROFILECHANGEstatic final int SERVICE_ACCEPT_HARDWAREPROFILECHANGE - See Also:
- Constant Field Values
 
 - 
SERVICE_ACCEPT_POWEREVENTstatic final int SERVICE_ACCEPT_POWEREVENT - See Also:
- Constant Field Values
 
 - 
SERVICE_ACCEPT_SESSIONCHANGEstatic final int SERVICE_ACCEPT_SESSIONCHANGE - See Also:
- Constant Field Values
 
 - 
SERVICE_ACCEPT_PRESHUTDOWNstatic final int SERVICE_ACCEPT_PRESHUTDOWN - See Also:
- Constant Field Values
 
 - 
SERVICE_ACCEPT_TIMECHANGEstatic final int SERVICE_ACCEPT_TIMECHANGE - See Also:
- Constant Field Values
 
 - 
SERVICE_ACCEPT_TRIGGEREVENTstatic final int SERVICE_ACCEPT_TRIGGEREVENT - See Also:
- Constant Field Values
 
 - 
SERVICE_CONFIG_DESCRIPTIONstatic final int SERVICE_CONFIG_DESCRIPTION - See Also:
- Constant Field Values
 
 - 
SERVICE_CONFIG_FAILURE_ACTIONSstatic final int SERVICE_CONFIG_FAILURE_ACTIONS - See Also:
- Constant Field Values
 
 - 
SERVICE_CONFIG_DELAYED_AUTO_START_INFOstatic final int SERVICE_CONFIG_DELAYED_AUTO_START_INFO - See Also:
- Constant Field Values
 
 - 
SERVICE_CONFIG_FAILURE_ACTIONS_FLAGstatic final int SERVICE_CONFIG_FAILURE_ACTIONS_FLAG - See Also:
- Constant Field Values
 
 - 
SERVICE_CONFIG_SERVICE_SID_INFOstatic final int SERVICE_CONFIG_SERVICE_SID_INFO - See Also:
- Constant Field Values
 
 - 
SERVICE_CONFIG_REQUIRED_PRIVILEGES_INFOstatic final int SERVICE_CONFIG_REQUIRED_PRIVILEGES_INFO - See Also:
- Constant Field Values
 
 - 
SERVICE_CONFIG_PRESHUTDOWN_INFOstatic final int SERVICE_CONFIG_PRESHUTDOWN_INFO - See Also:
- Constant Field Values
 
 - 
SERVICE_CONFIG_TRIGGER_INFOstatic final int SERVICE_CONFIG_TRIGGER_INFO - See Also:
- Constant Field Values
 
 - 
SERVICE_CONFIG_PREFERRED_NODEstatic final int SERVICE_CONFIG_PREFERRED_NODE - See Also:
- Constant Field Values
 
 - 
SERVICE_CONFIG_LAUNCH_PROTECTEDstatic final int SERVICE_CONFIG_LAUNCH_PROTECTED - See Also:
- Constant Field Values
 
 - 
SC_ACTION_NONEstatic final int SC_ACTION_NONE - See Also:
- Constant Field Values
 
 - 
SC_ACTION_RESTARTstatic final int SC_ACTION_RESTART - See Also:
- Constant Field Values
 
 - 
SC_ACTION_REBOOTstatic final int SC_ACTION_REBOOT - See Also:
- Constant Field Values
 
 - 
SC_ACTION_RUN_COMMANDstatic final int SC_ACTION_RUN_COMMAND - See Also:
- Constant Field Values
 
 - 
SC_ENUM_PROCESS_INFOstatic final int SC_ENUM_PROCESS_INFO - See Also:
- Constant Field Values
 
 
- 
 
-