Important: The information in this document is obsolete and should not be used for new development.
SetMessageHandlerInstanceContext
You can use theSetMessageHandlerInstanceContext
function to store data that can be used by a single handler.
void *SetMessageHandlerInstanceContext (void *);DESCRIPTION
TheSetMessageHandlerInstanceContext
function 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 theSetMessageHandlerInstanceContext
function, use theGetMessageHandlerInstanceContext
function described in the next section.To define common data that can be used by multiple instances of a handler, 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
SetMessageHandlerInstanceContext
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.