
#define launchinclude

#ifndef shelltypesinclude

	#include "shelltypes.h"

#endif

/*typedefs*/

typedef struct tylaunchcallbacks {
	
	callback waitcallback; /*called while waiting for process manager change to take effect*/
	} tylaunchcallbacks;


/*globals*/

extern tylaunchcallbacks launchcallbacks;


/*prototypes*/

extern boolean launchapplication (const tyfilespec *, const tyfilespec *, boolean flbringtofront);

extern boolean findrunningapplication (OSType *, bigstring, typrocessid *);

extern boolean activateapplication (bigstring);

extern boolean getfrontapplication (bigstring, boolean);

extern short countapplications (void);

extern boolean getnthapplication (short, bigstring);

extern boolean getapplicationfilespec (bigstring, tyfilespec *);

extern boolean executeresource (ResType, short, bigstring);

#ifdef flnewfeatures

extern OSType getprocesscreator (void);

extern typrocessid getcurrentprocessid (void);

extern boolean iscurrentapplication (typrocessid);

extern boolean isfrontapplication (typrocessid);

extern boolean activateapplicationwindow (typrocessid, WindowPtr);

#endif



