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: Processes
Chapter 2 - Process Manager / Process Manager Reference
Constants


Gestalt Selector and Response Bits

You can determine if the Process Manager is available and find out which features of the launch routine are available by calling the Gestalt function with the selector gestaltOSAttr.

CONST
   gestaltOSAttr              = 'os  ';{O/S attributes}
The Gestalt function returns information by setting or clearing bits in the response parameter. The following constants define the bits currently used:

CONST
   gestaltLaunchCanReturn     = 1;  {can return from launch}
   gestaltLaunchFullFileSpec  = 2;  {LaunchApplication available}
   gestaltLaunchControl       = 3;  {Process Manager is available}
Constant descriptions

gestaltLaunchCanReturn
Set if the _Launch trap macro can return to the caller. The _Launch trap macro in system software version 7.0 (and in earlier versions running MultiFinder) gives your application the option to continue running after it launches another application. In earlier versions of system software not running MultiFinder, the _Launch trap macro forces the launching application to quit.

gestaltLaunchFullFileSpec
Set if the launchControlFlags field supports control flags in addition to the launchContinue flag, and if the _Launch trap can process the launchAppSpec, launchProcessSN, launchPreferredSize, launchMinimumSize, launchAvailableSize, and launchAppParameters fields in the launch parameter block.

gestaltLaunchControl
Set if the Process Manager is available.

Previous Book Contents Book Index Next

© Apple Computer, Inc.
17 JUN 1996