Important: The information in this document is obsolete and should not be used for new development.
GetMessageHandlerClassContext
You can use theGetMessageHandlerClassContext
function to allow multiple instances of your handler to retrieve common global data.
void *GetMessageHandlerClassContext (void);DESCRIPTION
TheGetMessageHandlerClassContext
function returns common data that you defined using theSetMessageHandlerClassContext
function. This function can be called by any instance of your handler.If the
SetMessageHandlerClassContext
function has not been previously called, theGetMessageHandlerClassContext
function will returnnil
. If a constant, handle, or pointer has been stored, theGetMessageHandlerClassContext
function returns the stored data. This function may be used by your handler to allow multiple print jobs to share common global data.SEE ALSO
To store the data that is retrieved by theGetMessageHandlerClassContext
function, use theSetMessageHandlerClassContext
function described in the previous section.The use of the
GetMessageHandlerClassContext
function is described in the section "Setting and Getting Global Data for Multiple Handler Instances" beginning on page 6-12.To store data that can be used by only one instance of a handler, use the
SetMessageHandlerInstanceContext
function described on page 6-19. To retrieve the data that has been set, use theGetMessageHandlerInstanceContext
function described on page 6-20.Global data is discussed in the section "Global Data Storage for Printing Extensions and Printer Drivers" beginning on page 6-7.