Important: The information in this document is obsolete and should not be used for new development.
Launch Options
When you use theLaunchApplicationfunction, you specify the launch options in thelaunchControlFlagsfield of the launch parameter block. These are the constants you can specify in thelaunchControlFlagsfield:
CONST launchContinue = $4000; launchNoFileFlags = $0800; launchUseMinimum = $0400; launchDontSwitch = $0200; launchInhibitDaemon = $0080;Constant descriptions
launchContinue- Set this flag if you want your application to continue after the specified application is launched. If you do not set this flag,
LaunchApplicationterminates your application after launching the specified application, even if the launch fails.launchNoFileFlags
Set this flag if you want theLaunchApplicationfunction to ignore any value specified in thelaunchFileFlagsfield. If you set thelaunchNoFileFlagsflag, theLaunchApplicationfunction extracts the Finder flags from the application file for you. If you want to supply the file flags, clear thelaunchNoFileFlagsflag and specify the Finder flags in thelaunchFileFlagsfield of the launch parameter block.launchUseMinimum
Clear this flag if you want theLaunchApplicationfunction to attempt to launch the application in the preferred size (as specified in the application's'SIZE'resource). If you set thelaunchUseMinimumflag, theLaunchApplicationfunction attempts to launch the application using the largest available size greater than or equal to the minimum size but less than the preferred size. If theLaunchApplicationfunction returns the result codememFullErrormemFragErr, the application cannot be launched under the current memory conditions.launchDontSwitch
Set this flag if you do not want the launched application brought to the front. If you set this flag, the launched application runs in the background until the user brings the application to the front--for example, by clicking in one of the application's windows. Note that most applications expect to be launched in the foreground. If you clear thelaunchDontSwitchflag, the launched application is brought to the front, and your application is sent to the background.launchInhibitDaemon
Set this flag if you do not wantLaunchApplicationto launch a background-only application. (A background-only application has theonlyBackgroundflag set in its'SIZE'resource.)