Windows API Guide: Edit Control Window Class


Type PRINTER_INFO_2   pServerName As String   pPrinterName As String   pShareName As String   pPortName As String   pDriverName As String   pComment As String   pLocation As String   pDevMode As DEVMODE   pSepFile As String   pPrintProcessor As String   pDatatype As String   pParameters As String   pSecurityDescriptor As SECURITY_DESCRIPTOR   Attributes As Long   Priority As Long   DefaultPriority As Long   StartTime As Long   UntilTime As Long   Status As Long   cJobs As Long   AveragePPM As Long End Type

PRINTER_INFO_2-type variables hold a multitude of information about a printer. Its member values, along with substructures inside of it, identify most pieces of information about a printer which Windows can provide.

pServerName
The name of the network server which contols the printer, if any.
pPrinterName
The name of the printer.
pShareName
The name of the sharepoint of the printer on the network, if any.
pPortName
A comma-separated list of the printer port(s) the printer is connected to, such as LPT1:.
pDriverName
The name of the printer driver.
pComment
A comment about or a brief description of the printer.
pLocation
The physical location of the printer (usually applies to network printers).
pDevMode
Various default settings and attributes of the printer.
pSepFile
The file that contains the separator page printed between jobs.
pPrintProcessor
The name of the print processor the printer uses.
pDatatype
The name of the data type used to record the print jobs.
pParameters
Default parameters for the print processor.
pSecurityDescriptor
Security information about the printer.
Attributes
One or more of the following flags specifying various attributes of the printer:
PRINTER_ATTRIBUTE_DEFAULT = &H4
The default printer.
PRINTER_ATTRIBUTE_DIRECT = &H2
There is a direct connection to the printer (?).
PRINTER_ATTRIBUTE_DO_COMPLETE_FIRST = &H200
Complete jobs on a first-come, first-serve basis (?).
PRINTER_ATTRIBUTE_ENABLE_BIDI = &H800
Win 95/98 only: BIDI is enabled (?).
PRINTER_ATTRIBUTE_ENABLE_DEVQ = &H80
DEVQ is enabled (?).
PRINTER_ATTRIBUTE_KEEPPRINTEDJOBS = &H100
The Printer keeps information on printed jobs (?).
PRINTER_ATTRIBUTE_QUEUED = &H1
The printer supports document queueing (?).
PRINTER_ATTRIBUTE_SHARED = &H8
The printer is shared on a network.
PRINTER_ATTRIBUTE_WORK_OFFLINE = &H400
Win 95/98 only: The printer can work offline (?).
Priority
The priority given to the printer by the print spooler.
DefaultPriority
The default priority for a print job.
StartTime
The earliest time the printer will print a job, specified in minutes after midnight UTC (GMT or Zulu time).
UntilTime
The latest time the printer will print a job, specified in minutes after midnight UTC (GMT or Zulu time).
Status
One or more of the following flags specifying the printer's current status (Win NT only supports the PRINTER_STATUS_PAUSED and PRINTER_STATUS_PENDING_DELETION flags):
PRINTER_STATUS_BUSY = &H200
The printer is busy.
PRINTER_STATUS_DOOR_OPEN = &H400000
The door on the printer is open.
PRINTER_STATUS_ERROR = &H2
An error has occured.
PRINTER_STATUS_INITIALIZING = &H8000
The printer is initializing.
PRINTER_STATUS_IO_ACTIVE = &H100
I/O with the printer is active.
PRINTER_STATUS_MANUAL_FEED = &H20
The printer is loading paper using manual feed.
PRINTER_STATUS_NO_TONER = &H40000
The printer is out of toner.
PRINTER_STATUS_NOT_AVAILABLE = &H1000
The printer is not available.
PRINTER_STATUS_OFFLINE = &H80
The printer is offline.
PRINTER_STATUS_OUT_OF_MEMORY = &H200000
The printer is out of memory.
PRINTER_STATUS_OUTPUT_BIN_FULL = &H800
The printer's output bin is full.
PRINTER_STATUS_PAGE_PUNT = &H80000
The printer has aborted printing the current page because it is too complex to handle.
PRINTER_STATUS_PAPER_JAM = &H8
The printer's paper has jammed.
PRINTER_STATUS_PAPER_OUT = &H10
The printer is out of paper.
PRINTER_STATUS_PAPER_PROBLEM = &H40
There is a problem with the paper in the printer.
PRINTER_STATUS_PAUSED = &H1
The printer is paused.
PRINTER_STATUS_PENDING_DELETION = &H4
A document in the print queue is pending deletion.
PRINTER_STATUS_PRINTING = &H400
The printer is printing.
PRINTER_STATUS_PROCESSING = &H4000
The printer is processing information.
PRINTER_STATUS_TONER_LOW = &H20000
The printer is low on toner.
PRINTER_STATUS_USER_INTERVENTION = &H100000
The user has intervened in printer operations.
PRINTER_STATUS_WAITING = &H2000
The printer is waiting.
PRINTER_STATUS_WARMING_UP = &H10000
The printer is warming up.
AveragePPM
The average number of pages the printer can print per minute.

Used by: EnumPrinters

Go back to the alphabetical Structure listing.
Go back to the Reference section index.


This page is copyright © 2000 Paul Kuliniewicz. Copyright Information.
Go back to the Windows API Guide home page.
E-mail: vbapi@vbapi.com Send Encrypted E-Mail
This page is at http://www.vbapi.com/ref/p/printer_info_2.html



Windows API Guide
Windows API Guide - Reference - Volume 1: Version 3.0 For the MS-DOS and PC-DOS Operating Systems
ISBN: B001V0KQIY
EAN: N/A
Year: 1998
Pages: 610

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net