![]() |
PMRelease |
||||
Header: | PMCore.h | Carbon status: | Supported | |
Decrements a printing objects reference count.
OSStatus PMRelease ( PMObject object );
A Carbon Printing Manager object, such as a PMPrintSession, PMPageFormat, or PMPrintSettings object.
A result code. A result code. See
Your application should use the PMRelease function to release any printing objects it creates. When an objects reference count reaches 0, the object is deallocated.
To terminate a printing session created with PMCreateSession, pass the associated PMPrintSession object to PMRelease.
Valid after creating a printing object.
Supported in Carbon. Available in Carbon 1.1 and later when CarbonLib 1.1 or later is present.
PMRelease is equivalent to the Classic Printing Manager function PrClose when the parameter is a PMPrintSession object and its reference count is zero.
© 2000 Apple Computer, Inc. (Last Updated 7/17/2000)