public static class Winspool.JOB_INFO_1 extends Structure
Structure.ByReference, Structure.ByValue, Structure.StructField
Modifier and Type | Field | Description |
---|---|---|
static List<String> |
FIELDS |
|
int |
JobId |
A job identifier.
|
int |
PagesPrinted |
The number of pages that have printed.
|
String |
pDatatype |
A pointer to a null-terminated string that specifies the type of data
used to record the print job.
|
String |
pDocument |
A pointer to a null-terminated string that specifies the name of the
print job (for example, "MS-WORD: Review.doc").
|
String |
pMachineName |
A pointer to a null-terminated string that specifies the name of the
machine that created the print job.
|
int |
Position |
The job's position in the print queue.
|
String |
pPrinterName |
A pointer to a null-terminated string that specifies the name of the
printer for which the job is spooled.
|
int |
Priority |
The job priority.
|
String |
pStatus |
A pointer to a null-terminated string that specifies the status of
the print job.
|
String |
pUserName |
A pointer to a null-terminated string that specifies the name of the
user that owns the print job.
|
int |
Status |
The job status.
|
WinBase.SYSTEMTIME |
Submitted |
A SYSTEMTIME structure that specifies the time that this document was
spooled.
|
int |
TotalPages |
The total number of pages that the document contains.
|
ALIGN_DEFAULT, ALIGN_GNUC, ALIGN_MSVC, ALIGN_NONE, CALCULATE_SIZE
Constructor | Description |
---|---|
JOB_INFO_1() |
|
JOB_INFO_1(int size) |
Modifier and Type | Method | Description |
---|---|---|
protected List<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 int JobId
public String pPrinterName
public String pMachineName
public String pUserName
public String pDocument
public String pDatatype
public String pStatus
public int Status
public int Priority
public int Position
public int TotalPages
public int PagesPrinted
public WinBase.SYSTEMTIME Submitted
This time value is in Universal Time Coordinate (UTC) format. You should convert it to a local time value before displaying it. You can use the FileTimeToLocalFileTime function to perform the conversion.
protected List<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