Important: The information in this document is obsolete and should not be used for new development.
GetMessageHandlerInstanceContext
You can use theGetMessageHandlerInstanceContextfunction to retrieve data for a single instance of a handler.
void *GetMessageHandlerInstanceContext (void);DESCRIPTION
TheGetMessageHandlerInstanceContextfunction returns the data that you stored using theSetMessageHandlerInstanceContextfunction. This function returns the data that was stored by the instance of a handler that is calling theGetMessageHandlerInstanceContextfunction.If the
SetMessageHandlerInstanceContextfunction has not been previously called, theGetMessageHandlerInstanceContextfunction will returnnil. If a constant, handle, or pointer to other data has been stored, theGetMessageHandlerInstanceContextfunction returns the stored data.SEE ALSO
TheSetMessageHandlerInstanceContextfunction is described in the previous section.To define common data that can be used by multiple handlers, use the
SetMessageHandlerClassContextfunction described on page 6-21. To retrieve the common data that has been set, use theGetMessageHandlerClassContextfunction described on page 6-22.The use of the
GetMessageHandlerInstanceContextfunction 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.