|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Win32Service
Represents a Windows service. See http://msdn.microsoft.com/en-us/library/aa394418(VS.85).aspx
| Nested Class Summary | |
|---|---|
static class |
Win32Service.Implementation
|
| Field Summary | |
|---|---|
static int |
E_FAIL
|
static int |
InteractiveProcess
|
static int |
Win32OwnProcess
|
static int |
Win32ShareProcess
|
| Fields inherited from interface org.jinterop.dcom.impls.automation.IJIDispatch |
|---|
DISPATCH_DISPID_PUTPUTREF, DISPATCH_METHOD, DISPATCH_PROPERTYGET, DISPATCH_PROPERTYPUT, DISPATCH_PROPERTYPUTREF, IID |
| Method Summary | |
|---|---|
int |
Create(String name,
String displayName,
String pathName,
int serviceType,
int errorControl,
String startMode,
boolean desktopInteract)
|
int |
Create(String name,
String displayName,
String pathName,
int serviceType,
int errorControl,
String startMode,
boolean desktopInteract,
String startName,
String startPassword,
String loadOrderGroup,
String[] loadOrderGroupDependencies,
String[] serviceDependencies)
Creates a service. |
int |
Delete()
Deletes a service. |
String |
getErrorMessage(int r)
Gets the error message for the return code of the service manipulation method. |
void |
start()
Starts a service. |
boolean |
Started()
Service has been started. |
int |
StartService()
Deprecated. This method doesn't throw a failure as an exception. Use start() instead. |
String |
State()
Current state of the service. |
String |
Status()
Current status of the object. |
void |
stop()
Stops a service. |
int |
StopService()
Deprecated. This method doesn't throw a failure as an exception. Use stop() instead. |
| Methods inherited from interface org.kohsuke.jinterop.JIProxy |
|---|
cast |
| Methods inherited from interface org.jinterop.dcom.impls.automation.IJIDispatch |
|---|
callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethodA, callMethodA, callMethodA, callMethodA, callMethodA, callMethodA, callMethodA, get, get, get, get, getIDsOfNames, getIDsOfNames, getLastExcepInfo, getTypeInfo, getTypeInfoCount, put, put, put, put, putRef, putRef, putRef, putRef |
| Methods inherited from interface org.jinterop.dcom.core.IJIComObject |
|---|
addRef, call, call, getAssociatedSession, getInstanceLevelSocketTimeout, getInterfaceIdentifier, getIpid, getUnreferencedHandler, internal_getConnectionInfo, internal_getInterfacePointer, internal_removeConnectionInfo, internal_setConnectionInfo, internal_setDeffered, isDispatchSupported, isLocalReference, queryInterface, registerUnreferencedHandler, release, setInstanceLevelSocketTimeout, unregisterUnreferencedHandler |
| Field Detail |
|---|
static final int Win32OwnProcess
static final int Win32ShareProcess
static final int InteractiveProcess
static final int E_FAIL
| Method Detail |
|---|
String Status()
throws org.jinterop.dcom.common.JIException
The values are:
org.jinterop.dcom.common.JIException
String State()
throws org.jinterop.dcom.common.JIException
org.jinterop.dcom.common.JIException
boolean Started()
throws org.jinterop.dcom.common.JIException
org.jinterop.dcom.common.JIException
int Create(String name,
String displayName,
String pathName,
int serviceType,
int errorControl,
String startMode,
boolean desktopInteract,
String startName,
String startPassword,
String loadOrderGroup,
String[] loadOrderGroupDependencies,
String[] serviceDependencies)
throws org.jinterop.dcom.common.JIException
org.jinterop.dcom.common.JIException
int Create(String name,
String displayName,
String pathName,
int serviceType,
int errorControl,
String startMode,
boolean desktopInteract)
throws org.jinterop.dcom.common.JIException
org.jinterop.dcom.common.JIExceptionString getErrorMessage(int r)
int Delete()
throws org.jinterop.dcom.common.JIException
org.jinterop.dcom.common.JIException
int StartService()
throws org.jinterop.dcom.common.JIException
start() instead.
org.jinterop.dcom.common.JIException
void start()
throws org.jinterop.dcom.common.JIException
org.jinterop.dcom.common.JIException
int StopService()
throws org.jinterop.dcom.common.JIException
stop() instead.
org.jinterop.dcom.common.JIException
void stop()
throws org.jinterop.dcom.common.JIException
org.jinterop.dcom.common.JIException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||