Important: The information in this document is obsolete and should not be used for new development.
GetMessageHandlerInstanceContext
You can use theGetMessageHandlerInstanceContext
function to retrieve data for a single instance of a handler.
void *GetMessageHandlerInstanceContext (void);DESCRIPTION
TheGetMessageHandlerInstanceContext
function returns the data that you stored using theSetMessageHandlerInstanceContext
function. This function returns the data that was stored by the instance of a handler that is calling theGetMessageHandlerInstanceContext
function.If the
SetMessageHandlerInstanceContext
function has not been previously called, theGetMessageHandlerInstanceContext
function will returnnil
. If a constant, handle, or pointer to other data has been stored, theGetMessageHandlerInstanceContext
function returns the stored data.SEE ALSO
TheSetMessageHandlerInstanceContext
function is described in the previous section.To define common data that can be used by multiple handlers, use the
SetMessageHandlerClassContext
function described on page 6-21. To retrieve the common data that has been set, use theGetMessageHandlerClassContext
function described on page 6-22.The use of the
GetMessageHandlerInstanceContext
function is described in the section "Setting and Getting Global Data for a Single Handler Instance" beginning on page 6-10.Global data is discussed in the section "Global Data Storage for Printing Extensions and Printer Drivers" beginning on page 6-7.