Important: The information in this document is obsolete and should not be used for new development.
SetMessageHandlerInstanceContext
You can use theSetMessageHandlerInstanceContextfunction to store data that can be used by a single handler.
void *SetMessageHandlerInstanceContext (void *);DESCRIPTION
TheSetMessageHandlerInstanceContextfunction is used to store data that can be used by only a single instance of a message handler. This data is specific to your handler's code and is unique to one copy in memory. The stored data can be in the form of a long word constant, handle, or pointer to other data. The passed data can be accessed only by the instance of the message handler that sets the data.SEE ALSO
To retrieve the data that has been set by theSetMessageHandlerInstanceContextfunction, use theGetMessageHandlerInstanceContextfunction described in the next section.To define common data that can be used by multiple instances of a handler, 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
SetMessageHandlerInstanceContextfunction 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.