public static class Winspool.PRINTER_INFO_2 extends Structure
Structure.ByReference, Structure.ByValue, Structure.StructField
Modifier and Type | Field and Description |
---|---|
int |
Attributes
The printer attributes.
|
int |
AveragePPM
The average number of pages per minute that have been printed on the
printer.
|
int |
cJobs
The number of print jobs that have been queued for the printer.
|
int |
DefaultPriority
The default priority value assigned to each print job.
|
static List<String> |
FIELDS |
String |
pComment
A pointer to a null-terminated string that provides a brief
description of the printer.
|
String |
pDatatype
A pointer to a null-terminated string that specifies the data type
used to record the print job.
|
WinDef.INT_PTR |
pDevMode
A pointer to a DEVMODE structure that defines default printer data
such as the paper orientation and the resolution.
|
String |
pDriverName
A pointer to a null-terminated string that specifies the name of the
printer driver.
|
String |
pLocation
A pointer to a null-terminated string that specifies the physical
location of the printer (for example, "Bldg. 38, Room 1164").
|
String |
pParameters
A pointer to a null-terminated string that specifies the default
print-processor parameters.
|
String |
pPortName
A pointer to a null-terminated string that identifies the port(s)
used to transmit data to the printer.
|
String |
pPrinterName
A pointer to a null-terminated string that specifies the name of the
printer.
|
String |
pPrintProcessor
A pointer to a null-terminated string that specifies the name of the
print processor used by the printer.
|
int |
Priority
A priority value that the spooler uses to route print jobs.
|
WinDef.INT_PTR |
pSecurityDescriptor
A pointer to a SECURITY_DESCRIPTOR structure for the printer.
|
String |
pSepFile
A pointer to a null-terminated string that specifies the name of the
file used to create the separator page.
|
String |
pServerName
A pointer to a null-terminated string identifying the server that
controls the printer.
|
String |
pShareName
A pointer to a null-terminated string that identifies the share point
for the printer.
|
int |
StartTime
The earliest time at which the printer will print a job.
|
int |
Status
The printer status.
|
int |
UntilTime
The latest time at which the printer will print a job.
|
ALIGN_DEFAULT, ALIGN_GNUC, ALIGN_MSVC, ALIGN_NONE, CALCULATE_SIZE
Constructor and Description |
---|
PRINTER_INFO_2() |
PRINTER_INFO_2(int size) |
Modifier and Type | Method and Description |
---|---|
protected List<String> |
getFieldOrder()
Return this Structure's field names in their proper order.
|
boolean |
hasAttribute(int value)
Checks if the printer attributes have one of the values PRINTER_ATTRIBUTE_XXX.
|
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 String pServerName
public String pPrinterName
public String pShareName
public String pPortName
public String pDriverName
public String pComment
public String pLocation
public WinDef.INT_PTR pDevMode
public String pSepFile
public String pPrintProcessor
public String pDatatype
public String pParameters
public WinDef.INT_PTR pSecurityDescriptor
public int Attributes
public int Priority
public int DefaultPriority
public int StartTime
public int UntilTime
public int Status
public int cJobs
public int AveragePPM
public PRINTER_INFO_2()
public PRINTER_INFO_2(int size)
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
public boolean hasAttribute(int value)