Developer --> Technical Publications

     


Supported PrGeneral Opcodes

The Carbon Printing Manager provides the PMSessionGeneral function (and its non-session equivalent, PMGeneral ) as a replacement for the Classic PrGeneral function. However, Apple suggests that you reduce your reliance on these functions because they are not currently supported by all printer drivers, and because they are not likely to be supported in future versions of the Mac OS.

Table 2-4 lists PrGeneral opcodes that are supported in Carbon. For opcodes that have an associated accessor function, you use that function instead of passing the opcode to PMSessionGeneral . For example, use PMGetOrientation instead of passing the getRotnOp constant to PMSessionGeneral . The PMSessionGeneral function returns the result code kPMNotImplemented for any unsupported opcodes, and for opcodes that have Carbon accessor functions.

Table 2-4   Carbon support for PrGeneral opcodes
Opcode Value Accessor Function
GetRslDataOp 4 PMPrinterGetIndexedPrinterResolution
SetRslOp 5 PMSetResolution
DraftBitsOp 6 PMSessionGeneral supports this opcode
NoDraftBitsOp 7 PMSessionGeneral supports this opcode
getRotnOp 8 PMGetOrientation
NoGrayScl 9 PMSessionGeneral supports this opcode
GetPSInfoOp 10 PMSessionGeneral supports this opcode
PSIntentionsOp 11 PMSessionGeneral supports this opcode
EnableColorMatchingOp 12 PMSessionGeneral supports this opcode
PSAdobeOp 14 PMSessionGeneral supports this opcode
PSPrimaryPPDOp 15 PMSessionGeneral supports this opcode
kLoadCommProcsOp 16 PMSessionGeneral supports this opcode
kUnloadCommProcsOp 17 PMSessionGeneral supports this opcode
kExtendPrintRecOp 18 PMSessionGeneral supports this opcode
kGetExtendedPrintRecOp 19 PMSessionGeneral supports this opcode
kPrinterDirectOpCode 20 PMSessionGeneral supports this opcode
kSetExtendedPrintRecOp 21 PMSessionGeneral supports this opcode
kPrVersionOp 22 PMSessionGeneral supports this opcode
kGetPrinterInfo 23 PMSessionGeneral supports this opcode
kIsSamePrinterInfo 24 PMSessionGeneral supports this opcode
kSetDefaultPrinterInfo 25 PMSessionGeneral supports this opcode
kPrEnablePartialFonts 26 PMSessionGeneral supports this opcode

© 2000 Apple Computer, Inc. (Last Updated 03 July 2000)