home *** CD-ROM | disk | FTP | other *** search
/ Magazyn Exec 3 / CD_Magazyn_EXEC_nr_3.iso / Internet / Strony_WWW / Opus4.x / DOpus414JRsrc.lha / DirectoryOpus4 / Program / launchexternal.h < prev    next >
C/C++ Source or Header  |  2000-01-29  |  2KB  |  62 lines

  1. /*
  2.  
  3. Directory Opus 4
  4. Original GPL release version 4.12
  5. Copyright 1993-2000 Jonathan Potter
  6.  
  7. This program is free software; you can redistribute it and/or
  8. modify it under the terms of the GNU General Public License
  9. as published by the Free Software Foundation; either version 2
  10. of the License, or (at your option) any later version.
  11.  
  12. This program is distributed in the hope that it will be useful,
  13. but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  15. GNU General Public License for more details.
  16.  
  17. You should have received a copy of the GNU General Public License
  18. along with this program; if not, write to the Free Software
  19. Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
  20.  
  21. All users of Directory Opus 4 (including versions distributed
  22. under the GPL) are entitled to upgrade to the latest version of
  23. Directory Opus version 5 at a reduced price. Please see
  24. http://www.gpsoft.com.au for more information.
  25.  
  26. The release of Directory Opus 4 under the GPL in NO WAY affects
  27. the existing commercial status of Directory Opus 5.
  28.  
  29. */
  30.  
  31. #define FS_CURDIR   1
  32. #define FS_SEGMENT  2
  33. #define FS_LAUNCHED 3
  34.  
  35. #define FF_SAVESEG  1
  36.  
  37. struct DOpusStartup {
  38.     struct WBStartup wbstartup;
  39.     int retcode;
  40. };
  41.  
  42. struct dopus_func_start {
  43.     BPTR segment;                   /* Pointer to pre-loaded segment */
  44.     char *procname;                 /* Name to start process as      */
  45.     char *segname;                  /* Name to load segment from     */
  46.     int argcount;                   /* Argument count                */
  47.     char **args;                    /* Argument array                */
  48.     ULONG stack;                    /* Stack size for process        */
  49.     char flags;                     /* Function flags                */
  50.  
  51.     struct DOpusRemember *key;      /* Memory key                    */
  52.     struct MsgPort *replyport;      /* Process reply port            */
  53.     struct DOpusStartup startup;    /* Process Startup message       */
  54.     char status;                    /* Status byte                   */
  55.     BPTR olddir;                    /* Old current directory         */
  56.     struct Segment *resseg;         /* Resident Segment pointer      */
  57. };
  58.  
  59. #define SEG_DISK  0
  60. #define SEG_PRINT 1
  61. #define SEG_ICON  2
  62.