Package com.sun.jna.platform.win32
Klasse Winspool.PRINTER_INFO_2
java.lang.Object
com.sun.jna.Structure
com.sun.jna.platform.win32.Winspool.PRINTER_INFO_2
- Umschließende Schnittstelle:
Winspool
@FieldOrder({"pServerName","pPrinterName","pShareName","pPortName","pDriverName","pComment","pLocation","pDevMode","pSepFile","pPrintProcessor","pDatatype","pParameters","pSecurityDescriptor","Attributes","Priority","DefaultPriority","StartTime","UntilTime","Status","cJobs","AveragePPM"})
public static class Winspool.PRINTER_INFO_2
extends Structure
The PRINTER_INFO_2 structure specifies detailed printer information.
- Autor:
- Ivan Ridao Freitas, Padrus
- Siehe auch:
-
Verschachtelte Klassen - Übersicht
Von Klasse geerbte verschachtelte Klassen/Schnittstellen com.sun.jna.Structure
Structure.ByReference, Structure.ByValue, Structure.FieldOrder, Structure.StructField
-
Feldübersicht
Modifizierer und TypFeldBeschreibungint
The printer attributes.int
The average number of pages per minute that have been printed on the printer.int
The number of print jobs that have been queued for the printer.int
The default priority value assigned to each print job.A pointer to a null-terminated string that provides a brief description of the printer.A pointer to a null-terminated string that specifies the data type used to record the print job.A pointer to a DEVMODE structure that defines default printer data such as the paper orientation and the resolution.A pointer to a null-terminated string that specifies the name of the printer driver.A pointer to a null-terminated string that specifies the physical location of the printer (for example, "Bldg. 38, Room 1164").A pointer to a null-terminated string that specifies the default print-processor parameters.A pointer to a null-terminated string that identifies the port(s) used to transmit data to the printer.A pointer to a null-terminated string that specifies the name of the printer.A pointer to a null-terminated string that specifies the name of the print processor used by the printer.int
A priority value that the spooler uses to route print jobs.A pointer to a SECURITY_DESCRIPTOR structure for the printer.A pointer to a null-terminated string that specifies the name of the file used to create the separator page.A pointer to a null-terminated string identifying the server that controls the printer.A pointer to a null-terminated string that identifies the share point for the printer.int
The earliest time at which the printer will print a job.int
The printer status.int
The latest time at which the printer will print a job.Von Klasse geerbte Felder com.sun.jna.Structure
ALIGN_DEFAULT, ALIGN_GNUC, ALIGN_MSVC, ALIGN_NONE, CALCULATE_SIZE
-
Konstruktorübersicht
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungboolean
hasAttribute
(int value) Checks if the printer attributes have one of the values PRINTER_ATTRIBUTE_XXX.Von Klasse geerbte Methoden com.sun.jna.Structure
allocateMemory, 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
-
Felddetails
-
pServerName
A pointer to a null-terminated string identifying the server that controls the printer. If this string is NULL, the printer is controlled locally. -
pPrinterName
A pointer to a null-terminated string that specifies the name of the printer. -
pPortName
A pointer to a null-terminated string that identifies the port(s) used to transmit data to the printer. If a printer is connected to more than one port, the names of each port must be separated by commas (for example, "LPT1:,LPT2:,LPT3:"). -
pDriverName
A pointer to a null-terminated string that specifies the name of the printer driver. -
pComment
A pointer to a null-terminated string that provides a brief description of the printer. -
pLocation
A pointer to a null-terminated string that specifies the physical location of the printer (for example, "Bldg. 38, Room 1164"). -
pDevMode
A pointer to a DEVMODE structure that defines default printer data such as the paper orientation and the resolution. -
pSepFile
A pointer to a null-terminated string that specifies the name of the file used to create the separator page. This page is used to separate print jobs sent to the printer. -
pPrintProcessor
A pointer to a null-terminated string that specifies the name of the print processor used by the printer. You can use the EnumPrintProcessors function to obtain a list of print processors installed on a server. -
pDatatype
A pointer to a null-terminated string that specifies the data type used to record the print job. You can use the EnumPrintProcessorDatatypes function to obtain a list of data types supported by a specific print processor. -
pParameters
A pointer to a null-terminated string that specifies the default print-processor parameters. -
pSecurityDescriptor
A pointer to a SECURITY_DESCRIPTOR structure for the printer. This member may be NULL. -
Attributes
public int AttributesThe printer attributes. This member can be any reasonable combination of the values PRINTER_ATTRIBUTE_XXX. -
Priority
public int PriorityA priority value that the spooler uses to route print jobs. -
DefaultPriority
public int DefaultPriorityThe default priority value assigned to each print job. -
StartTime
public int StartTimeThe earliest time at which the printer will print a job. This value is expressed as minutes elapsed since 12:00 AM GMT (Greenwich Mean Time). -
UntilTime
public int UntilTimeThe latest time at which the printer will print a job. This value is expressed as minutes elapsed since 12:00 AM GMT (Greenwich Mean Time). -
Status
public int StatusThe printer status. This member can be any reasonable combination of the values PRINTER_STATUS_XXX. -
cJobs
public int cJobsThe number of print jobs that have been queued for the printer. -
AveragePPM
public int AveragePPMThe average number of pages per minute that have been printed on the printer.
-
-
Konstruktordetails
-
PRINTER_INFO_2
public PRINTER_INFO_2() -
PRINTER_INFO_2
public PRINTER_INFO_2(int size)
-
-
Methodendetails
-
hasAttribute
public boolean hasAttribute(int value) Checks if the printer attributes have one of the values PRINTER_ATTRIBUTE_XXX.
-