Important: The information in this document is obsolete and should not be used for new development.
InitWindows
The procedureInitWindowsinitializes the Window Manager for your application. Before callingInitWindows, you must initialize QuickDraw and the Font Manager by calling theInitGrafandInitFontsprocedures, documented in Inside Macintosh: Imaging and Inside Macintosh: Text.
PROCEDURE InitWindows;DESCRIPTION
TheInitWindowsprocedure initializes the Window Manager.ASSEMBLY-LANGUAGE INFORMATION
When the desktop needs to be redrawn any time after initialization, the Window Manager checks the global variableDeskHook, which can be used as a pointer to an application-defined routine for drawing the desktop. This variable is ordinarily set to 0, but not until after system startup. If you're displaying windows in code that is to be executed during startup, setDeskHookto 0. Note that the use of the Window Manager's global variables is not guaranteed to be compatible in system software versions later than System 6.