Structure.ByReference, Structure.ByValue, Structure.StructField
Modifier and Type | Field | Description |
---|---|---|
int |
dwCheckPoint |
dwCheckPoint - The check-point value the service increments periodically to report
its progress during a lengthy start, stop, pause, or continue operation.
|
int |
dwControlsAccepted |
dwControlsAccepted - The control codes the service accepts and processes
in its handler function:
SERVICE_ACCEPT_STOP, SERVICE_ACCEPT_PAUSE_CONTINUE, SERVICE_ACCEPT_SHUTDOWN,
SERVICE_ACCEPT_PARAMCHANGE, SERVICE_ACCEPT_NETBINDCHANGE, SERVICE_ACCEPT_HARDWAREPROFILECHANGE,
SERVICE_ACCEPT_POWEREVENT, SERVICE_ACCEPT_SESSIONCHANGE, SERVICE_ACCEPT_PRESHUTDOWN,
SERVICE_ACCEPT_TIMECHANGE, SERVICE_ACCEPT_TRIGGEREVENT
|
int |
dwCurrentState |
dwCurrentState - The current state of the service.
|
int |
dwProcessId |
dwProcessId - The process identifier of the service.
|
int |
dwServiceFlags |
This member can be one of the following values: 0, or SERVICE_RUNS_IN_SYSTEM_PROCESS
|
int |
dwServiceSpecificExitCode |
dwServiceSpecificExitCode - A service-specific error code that the service returns
when an error occurs while the service is starting or stopping.
|
int |
dwServiceType |
dwServiceType - the type of service.
|
int |
dwWaitHint |
dwWaitHint - The estimated time required for a pending start, stop, pause, or continue
operation, in milliseconds.
|
int |
dwWin32ExitCode |
dwWin32ExitCode - The error code the service uses to report an error that occurs
when it is starting or stopping.
|
static java.util.List<java.lang.String> |
FIELDS |
ALIGN_DEFAULT, ALIGN_GNUC, ALIGN_MSVC, ALIGN_NONE, CALCULATE_SIZE
Constructor | Description |
---|---|
SERVICE_STATUS_PROCESS() |
|
SERVICE_STATUS_PROCESS(int size) |
Modifier and Type | Method | Description |
---|---|---|
protected java.util.List<java.lang.String> |
getFieldOrder() |
Return this Structure's field names in their proper order.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
allocateMemory, allocateMemory, autoAllocate, autoRead, autoRead, autoWrite, autoWrite, cacheTypeInfo, calculateSize, clear, createFieldsOrder, createFieldsOrder, createFieldsOrder, createFieldsOrder, dataEquals, dataEquals, ensureAllocated, equals, fieldOffset, getAutoRead, getAutoWrite, getFieldList, getFields, getNativeAlignment, getNativeSize, getNativeSize, getPointer, getStringEncoding, getStructAlignment, hashCode, newInstance, newInstance, read, readField, readField, setAlignType, setAutoRead, setAutoSynch, setAutoWrite, setFieldOrder, setStringEncoding, size, sortFields, toArray, toArray, toString, toString, useMemory, useMemory, write, writeField, writeField, writeField
public static final java.util.List<java.lang.String> FIELDS
public int dwServiceType
public int dwCurrentState
public int dwControlsAccepted
public int dwWin32ExitCode
public int dwServiceSpecificExitCode
public int dwCheckPoint
public int dwWaitHint
public int dwProcessId
public int dwServiceFlags
public SERVICE_STATUS_PROCESS()
public SERVICE_STATUS_PROCESS(int size)
protected java.util.List<java.lang.String> getFieldOrder()
Structure
protected List getFieldOrder() {
return Arrays.asList(new String[] { ... });
}
IMPORTANT
When deriving from an existing Structure subclass, ensure that
you augment the list provided by the superclass, e.g.
protected List getFieldOrder() {
List fields = new ArrayList(super.getFieldOrder());
fields.addAll(Arrays.asList(new String[] { ... }));
return fields;
}
Field order must be explicitly indicated, since the
field order as returned by Class.getFields()
is not
guaranteed to be predictable.getFieldOrder
in class Structure