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.