appletprocess.h

Go to the documentation of this file.
00001 
00002 /*  $Id: appletprocess.h 355 2005-01-11 22:48:55Z andreradke $    */
00003 
00004 /* copyright 1991-96 UserLand Software, Inc. All Rights Reserved.*/
00005 
00006 
00007 #define appletprocessinclude
00008 
00009 
00010 #ifndef __PROCESSES__
00011 
00012     #include <Processes.h>
00013     
00014 #endif
00015 
00016 
00017 #ifndef appletdefsinclude
00018 
00019     #include "appletdefs.h"
00020     
00021 #endif
00022 
00023 
00024 typedef struct typrocessinfo {
00025     
00026     char name [32]; /*depends on how the app was launched*/
00027     
00028     ProcessSerialNumber serialnumber, launcherserialnumber;
00029      
00030     FSSpec file; /*the file the app was launched from*/
00031    
00032     OSType filetype; /*type of the file*/
00033     
00034     OSType filecreator; /*creator ID of the file*/
00035     
00036     unsigned long sizerecourceflags;
00037     
00038     Ptr partition; /*where the app is loaded in memory*/
00039     
00040     unsigned long partitionsize; /*how much memory the app occupies*/
00041     
00042     unsigned long freebytesinheap; /*how many bytes are free in its application heap*/
00043     
00044     unsigned long launchticks; /*the value of TickCount when the app was launched*/
00045     
00046     unsigned long activeticks; /*the number of ticks it has consumed*/
00047     
00048     unsigned long refcon; /*you can add your own info to this record*/
00049     } typrocessinfo, **hdlprocessinfo;
00050     
00051 
00052 typedef boolean (*typrocessloopcallback) (typrocessinfo *, long);
00053 
00054 boolean processloop (typrocessloopcallback, long);
00055 
00056 boolean findrunningapp (OSType, typrocessinfo *);
00057 
00058 boolean bringapptofront (OSType);
00059 
00060 boolean launchappwithdoc (FSSpec *, FSSpec *, boolean);
00061 
00062 boolean sendodoc (OSType, FSSpec *);
00063 
00064 boolean launchusingfinder (FSSpec *);
00065 
00066 boolean revealinfinder (FSSpec *);
00067 
00068 boolean launchdeskaccessoryfile (FSSpec *);
00069 
00070 boolean fileisrunning (FSSpec *);
00071 
00072 boolean equalprocesses (typrocessinfo *, typrocessinfo *);
00073 
00074 boolean quitapplication (OSType);
00075 
00076 boolean launchHelperApp (OSType, void *);
00077 
00078 boolean getcurrentappfilespec (FSSpec *);
00079 
00080 boolean getcurrentappfolder (FSSpec *);
00081 
00082 
00083 

Generated on Wed May 31 18:19:43 2006 for frontierkernel 10.1.10a by  doxygen 1.4.6