Carbon


PMSessionError

Header: PMCore.h Carbon status: Supported

Obtains the result code from the last Carbon Printing Manager function called in the specified printing session.

OSStatus PMSessionError (
    PMPrintSession printSession
);
Parameter descriptions
printSession

A PMPrintSession object.

function result

A result code. A result code. See “Result Codes”. The result code kPMCancel indicates the user canceled the current print job.

DISCUSSION

You can use this function to determine whether the user has canceled the current print job. The result code kPMCancel is returned if the user clicks the Cancel button in the printer driver’s status dialog box. If this or any other error is encountered during the print loop, your application should call the appropriate “end” routines (for example, PMSessionEndPage and PMSessionEndDocument) to exit the print loop before reporting the error.

SPECIAL CONSIDERATIONS

Valid after calling PMCreateSession.

AVAILABILITY

Supported in Carbon. Available in Carbon 1.1 and later when CarbonLib 1.1 or later is present.


© 2000 Apple Computer, Inc. (Last Updated 7/17/2000)