|
JNA API> 4.0.0 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.jna.platform.win32.W32Service
public class W32Service
Win32 Service wrapper
Field Summary | |
---|---|
(package private) Winsvc.SC_HANDLE |
_handle
|
Constructor Summary | |
---|---|
W32Service(Winsvc.SC_HANDLE handle)
Win32 Service |
Method Summary | |
---|---|
void |
close()
Close service. |
void |
continueService()
Continue service. |
Winsvc.SC_HANDLE |
getHandle()
Gets the service handle. |
void |
pauseService()
Pause service. |
Winsvc.SERVICE_STATUS_PROCESS |
queryStatus()
Retrieves the current status of the specified service based on the specified information level. |
void |
startService()
|
void |
stopService()
Stop service. |
void |
waitForNonPendingState()
Wait for the state to change to something other than a pending state. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
Winsvc.SC_HANDLE _handle
Constructor Detail |
---|
public W32Service(Winsvc.SC_HANDLE handle)
handle
- 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.Method Detail |
---|
public void close()
public Winsvc.SERVICE_STATUS_PROCESS queryStatus()
public void startService()
public void stopService()
public void continueService()
public void pauseService()
public void waitForNonPendingState()
public Winsvc.SC_HANDLE getHandle()
|
JNA API> 4.0.0 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |