Carbon


Gestalt Constants

Header: Gestalt.h

Before calling any function dependent on memory, your application should pass the selector gestaltOSAttr to the Gestalt function to determine the memory attributes that are present.

enum {
    gestaltOSAttr = 'os  ',
    gestaltSysZoneGrowable = 0,
    gestaltLaunchCanReturn = 1,
    gestaltLaunchFullFileSpec = 2,
    gestaltLaunchControl = 3,
    gestaltTempMemSupport = 4,
    gestaltRealTempMemory = 5,
    gestaltTempMemTracked = 6,
    gestaltIPCSupport = 7,
    gestaltSysDebuggerSupport = 8
};

Constant descriptions

gestaltOSAttr

The Gestalt selector you pass to determine general Operating System attributes, such as whether temporary memory handles are real handles. The low-order bits of the response parameter are interpreted as bit flags. A flag is set to 1 to indicate that the corresponding feature is available. Currently, the following bits are significant.

gestaltSysZoneGrowable
gestaltLaunchCanReturn

If this bit is set, 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

If this bit is set, 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

If this bit is set, the Process Manager is available.

gestaltTempMemSupport

If true, there is temporary memory support.

gestaltRealTempMemory

If true, temporary memory handles are real.

gestaltTempMemTracked

If true, temporary memory handles are tracked.

gestaltIPCSupport
gestaltSysDebuggerSupport


© 2000 Apple Computer, Inc. (Last Updated 6/30/2000)