Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: Imaging With QuickDraw /
Chapter 9 - Printing Manager / Printing Manager Reference
Data Structures /


TGnlData

The record of data type TGnlData is the basic record used by the PrGeneral procedure (described beginning on page 9-69). Although no opcode of PrGeneral uses the TGnlData record, all other records created for PrGeneral are based on this record.

TYPE TGnlData = 
   RECORD
      iOpCode:    Integer; {opcode passed to PrGeneral}
      iError:     Integer; {result code returned by PrGeneral}
      lReserved:  LongInt; {more fields here depending on opcode}
END;
Field Description
iOpCode
The opcode that is passed to PrGeneral to obtain the requested feature. There are five possible opcodes; you can use the following constants or the values they represent to specify one of these opcodes
               CONST {opcodes used with PrGeneral}
                getRslDataOp  = 4;  {get resolutions for the }
                                    { current printer}
                setRslOp      = 5;  {set resolutions for a }
                                    { TPrint record}
                draftBitsOp   = 6;  {force enhanced draft- }
                                    { quality printing}
                noDraftBitsOp = 7;  {cancel enhanced draft- }
                                    { quality printing}
                getRotnOp     = 8;  {get page orientation of }
                                    { a TPrint record}
iError
The result code returned by PrGeneral.
lReserved
Reserved. Additional fields may follow this field, depending on the opcode used. See the descriptions of the TGetRslBlk (in the next section), TSetRslBlk (on page 9-51), TDftBitsBlk (on page 9-52), and TGetRotnBlk (on page 9-53) records.

Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996