Important: The information in this document is obsolete and should not be used for new development.
SetMessageHandlerClassContext
You can use theSetMessageHandlerClassContext
function to store data that can be used by multiple instances of a message handler.
void *SetMessageHandlerClassContext (void *);DESCRIPTION
TheSetMessageHandlerClassContext
function is used to store data that can be used by multiple instances of a message handler in one or more print jobs. The parameter passed is a pointer to thelong
data. The stored data can be in the form of a constant, handle, or pointer to additional data. This reference constant can be used by all instances of a message handler.SEE ALSO
To retrieve the data defined by theSetMessageHandlerClassContext
function, use theGetMessageHandlerClassContext
function described in the next section.The use of the
SetMessageHandlerClassContext
function is described in the section "Setting and Getting Global Data for Multiple Handler Instances" beginning on page 6-12.To define data that can be used by only one 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.