Package com.sun.jna.platform.win32
Class Winspool.JOB_INFO_1
- java.lang.Object
- 
- com.sun.jna.Structure
- 
- com.sun.jna.platform.win32.Winspool.JOB_INFO_1
 
 
- 
- Enclosing interface:
- Winspool
 
 @FieldOrder({"JobId","pPrinterName","pMachineName","pUserName","pDocument","pDatatype","pStatus","Status","Priority","Position","TotalPages","PagesPrinted","Submitted"}) public static class Winspool.JOB_INFO_1 extends Structure The JOB_INFO_1 structure specifies print-job information such as the job-identifier value, the name of the printer for which the job is spooled, the name of the machine that created the print job, the name of the user that owns the print job, and so on.- See Also:
- JOB_INFO_1 structure
 
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from class com.sun.jna.StructureStructure.ByReference, Structure.ByValue, Structure.FieldOrder, Structure.StructField
 
- 
 - 
Field SummaryFields Modifier and Type Field Description intJobIdA job identifier.intPagesPrintedThe number of pages that have printed.java.lang.StringpDatatypeA pointer to a null-terminated string that specifies the type of data used to record the print job.java.lang.StringpDocumentA pointer to a null-terminated string that specifies the name of the print job (for example, "MS-WORD: Review.doc").java.lang.StringpMachineNameA pointer to a null-terminated string that specifies the name of the machine that created the print job.intPositionThe job's position in the print queue.java.lang.StringpPrinterNameA pointer to a null-terminated string that specifies the name of the printer for which the job is spooled.intPriorityThe job priority.java.lang.StringpStatusA pointer to a null-terminated string that specifies the status of the print job.java.lang.StringpUserNameA pointer to a null-terminated string that specifies the name of the user that owns the print job.intStatusThe job status.WinBase.SYSTEMTIMESubmittedA SYSTEMTIME structure that specifies the time that this document was spooled.intTotalPagesThe total number of pages that the document contains.- 
Fields inherited from class com.sun.jna.StructureALIGN_DEFAULT, ALIGN_GNUC, ALIGN_MSVC, ALIGN_NONE, CALCULATE_SIZE
 
- 
 - 
Constructor SummaryConstructors Constructor Description JOB_INFO_1()JOB_INFO_1(int size)
 - 
Method Summary- 
Methods inherited from class com.sun.jna.StructureallocateMemory, allocateMemory, autoAllocate, autoRead, autoRead, autoWrite, autoWrite, cacheTypeInfo, calculateSize, clear, createFieldsOrder, createFieldsOrder, createFieldsOrder, createFieldsOrder, dataEquals, dataEquals, ensureAllocated, equals, fieldOffset, getAutoRead, getAutoWrite, getFieldList, getFieldOrder, getFields, getNativeAlignment, getNativeSize, getNativeSize, getPointer, getStringEncoding, getStructAlignment, hashCode, newInstance, newInstance, read, readField, readField, setAlignType, setAutoRead, setAutoSynch, setAutoWrite, setStringEncoding, size, sortFields, toArray, toArray, toString, toString, useMemory, useMemory, write, writeField, writeField, writeField
 
- 
 
- 
- 
- 
Field Detail- 
JobIdpublic int JobId A job identifier.
 - 
pPrinterNamepublic java.lang.String pPrinterName A pointer to a null-terminated string that specifies the name of the printer for which the job is spooled.
 - 
pMachineNamepublic java.lang.String pMachineName A pointer to a null-terminated string that specifies the name of the machine that created the print job.
 - 
pUserNamepublic java.lang.String pUserName A pointer to a null-terminated string that specifies the name of the user that owns the print job.
 - 
pDocumentpublic java.lang.String pDocument A pointer to a null-terminated string that specifies the name of the print job (for example, "MS-WORD: Review.doc").
 - 
pDatatypepublic java.lang.String pDatatype A pointer to a null-terminated string that specifies the type of data used to record the print job.
 - 
pStatuspublic java.lang.String pStatus A pointer to a null-terminated string that specifies the status of the print job. This member should be checked prior to Status and, if pStatus is NULL, the status is defined by the contents of the Status member.
 - 
Statuspublic int Status The job status. The value of this member can be zero or a combination of one or more of the following values. A value of zero indicates that the print queue was paused after the document finished spooling.
 - 
Prioritypublic int Priority The job priority. This member can be one of the following values or in the range between 1 through 99 (MIN_PRIORITY through MAX_PRIORITY).
 - 
Positionpublic int Position The job's position in the print queue.
 - 
TotalPagespublic int TotalPages The total number of pages that the document contains. This value may be zero if the print job does not contain page delimiting information.
 - 
PagesPrintedpublic int PagesPrinted The number of pages that have printed. This value may be zero if the print job does not contain page delimiting information.
 - 
Submittedpublic WinBase.SYSTEMTIME Submitted A SYSTEMTIME structure that specifies the time that this document was spooled.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. 
 
- 
 
-