Carbon


PMSetError

Header: PMCore.h Carbon status: Not Recommended

Sets the value of the current Carbon Printing Manager result code.

OSStatus PMSetError (
    OSStatus printError
);
Parameter descriptions
printError

The result code you wish to set. This result code will be returned by the PMError function.

function result

A result code. A result code. See “Result Codes”.

DISCUSSION

You can use this function to terminate a printing session if your application encounters any errors inside the print loop.

PMSessionSetError is recommended instead of PMSetError.

SPECIAL CONSIDERATIONS

Valid after calling PMBegin.

AVAILABILITY

Not recommended in Carbon. Available in Carbon 1.0.2 and later.

CARBON NOTES

The PMSetError function replaces the Printing Manager function PrSetError. You are encouraged to reduce your use of this function.


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