Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: QuickDraw GX Environment and Utilities /
Chapter 6 - Message Manager / Message Manager Reference
Driver- or Extension-Defined Functions /


MessageGlobalsInitProc

You can create an initialization function that requests and allocates memory for your global data. The initialization function must have a prototype of this form:

typedef void (*MessageGlobalsInitProc) (void *messageGlobals);
messageGlobals

A pointer to the global data to be initialized.
DESCRIPTION
You must supply the MessageGlobalsInitProc function if you use the NewMessageGlobals function to allocate memory for your global data. Once this initialization function is installed, QuickDraw GX calls it whenever you use the NewMessageGlobals function.

If your programming environment is MPW, you may use the A5Init function that MPW provides to establish an A5 world for your global data:

void A5Init (void *globalPtr);
SEE ALSO
The NewMessageGlobals function is described on page 6-17.

For more information on initializing you global data, see the section "Allocating Memory for and Disposing of Global Data" beginning on page 6-8.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996