launch.c File Reference

#include "frontier.h"
#include "standard.h"
#include "error.h"
#include "memory.h"
#include "strings.h"
#include "file.h"
#include "launch.h"
#include "threads.h"

Include dependency graph for launch.c:

Go to the source code of this file.

Defines

#define maxwait   120

Functions

boolean launchapplication (const tyfilespec *fsapp, const tyfilespec *fsdoc, boolean flbringtofront)
boolean activateapplication (bigstring bsprogram)
boolean findrunningapplication (OSType *appid, bigstring appname, typrocessid *psn)
boolean getfrontapplication (bigstring bsprogram, boolean flfullpath)
short countapplications (void)
boolean getnthapplication (short n, bigstring bsprogram)
boolean getapplicationfilespec (bigstring bsprogram, tyfilespec *fs)
boolean executeresource (ResType type, short id, bigstring bsname)
typrocessid getcurrentprocessid (void)
boolean iscurrentapplication (typrocessid psn)
boolean isfrontapplication (typrocessid psn)

Variables

tylaunchcallbacks launchcallbacks = {nil}


Define Documentation

#define maxwait   120
 

Definition at line 74 of file launch.c.


Function Documentation

boolean activateapplication bigstring  bsprogram  ) 
 

Definition at line 1478 of file launch.c.

References grabthreadglobals(), gSystemVersion, nil, releasethreadglobals(), and stringlength.

Referenced by FrontierFrameWndProc(), openwindowsparamlinefiles(), shellactivate(), shellwindowmenuselect(), and sysfunctionvalue().

Here is the call graph for this function:

short countapplications void   ) 
 

Definition at line 1814 of file launch.c.

References gSystemVersion, info, and short.

Referenced by sysfunctionvalue().

boolean executeresource ResType  type,
short  id,
bigstring  bsname
 

Definition at line 2096 of file launch.c.

References hcode, lockhandle(), nil, pascal, and unlockhandle().

Referenced by launchfunctionvalue().

Here is the call graph for this function:

boolean findrunningapplication OSType appid,
bigstring  appname,
typrocessid psn
 

Definition at line 1644 of file launch.c.

Referenced by assureappisrunning(), findrunningapp(), getipcaddressvalue(), langipcbuildmessage(), and sysfunctionvalue().

boolean getapplicationfilespec bigstring  bsprogram,
tyfilespec fs
 

Definition at line 1938 of file launch.c.

References clearbytes(), copyctopstring(), copystring(), fsname, gSystemVersion, info, nil, noErr, setstringlength, short, and stringlength.

Referenced by ccdrawfrontiericon(), initfsdefault(), InitializeApplication(), shellopendefaultfile(), sysfunctionvalue(), and sysinitverbs().

Here is the call graph for this function:

typrocessid getcurrentprocessid void   ) 
 

Definition at line 2186 of file launch.c.

Referenced by clipboardfunctionvalue(), InitializeInstance(), newshellwindow(), and threadfunctionvalue().

boolean getfrontapplication bigstring  bsprogram,
boolean  flfullpath
 

Definition at line 1744 of file launch.c.

References copystring().

Referenced by sysfunctionvalue().

Here is the call graph for this function:

boolean getnthapplication short  n,
bigstring  bsprogram
 

Definition at line 1857 of file launch.c.

References copystring(), gSystemVersion, info, setstringlength, and stringlength.

Referenced by sysfunctionvalue().

Here is the call graph for this function:

boolean iscurrentapplication typrocessid  psn  ) 
 

Definition at line 2202 of file launch.c.

References noErr.

Referenced by closeosaservers(), getmenutobuild(), getosaserver(), langipchandlercall(), newselfaddressedevent(), osacomponentverifyshutdown(), osapartialeventloop(), servingsharedmenus(), shellbringtofront(), shellshorteventloop(), and threadfunctionvalue().

boolean isfrontapplication typrocessid  psn  ) 
 

Definition at line 2224 of file launch.c.

References noErr.

Referenced by clipboardfunctionvalue(), and handlerecordableevent().

boolean launchapplication const tyfilespec fsapp,
const tyfilespec fsdoc,
boolean  flbringtofront
 

Definition at line 1242 of file launch.c.

References fsname, gSystemVersion, and setoserrorparam().

Referenced by assureappisrunning(), and launchfunctionvalue().

Here is the call graph for this function:


Variable Documentation

tylaunchcallbacks launchcallbacks = {nil}
 

Definition at line 72 of file launch.c.

Referenced by sysinitverbs().


Generated on Tue Jun 6 16:36:29 2006 for frontierkernel 10.1.10a by  doxygen 1.4.6