home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / wfdos.zip / WFDOS.H < prev    next >
Text File  |  1995-04-15  |  4KB  |  82 lines

  1. /*┌─ WFDOS.H ────────────────────────────────────────────────────────────────────┐*/
  2. /*│ WFDOS - Invoke DOS program in background mode from IBM WorkFrame/2.          │*/
  3. /*│                                                                              │*/
  4. /*│ Copyright:                                                                   │*/
  5. /*│ ▀▀▀▀▀▀▀▀▀▀                                                                   │*/
  6. /*│ (c) Copyright Per Jessen, 1994.                                              │*/
  7. /*│ Permission is granted to any individual or institution to use, copy, or      │*/
  8. /*│ redistribute this software so long as all of the original files are included │*/
  9. /*│ unmodified, that it is not sold for profit, and that this copyright notice   │*/
  10. /*│ is retained.                                                                 │*/
  11. /*│                                                                              │*/
  12. /*│ Disclaimer:                                                                  │*/
  13. /*│ ▀▀▀▀▀▀▀▀▀▀▀                                                                  │*/
  14. /*│ The code is provided on an "AS IS" basis without any warranty of any kind.   │*/
  15. /*│ The author shall not be liable for any damages arising out of your use of    │*/
  16. /*│ this code, even if he has been advised of the possibility of such damages.   │*/
  17. /*└──────────────────────────────────────────────────────────────────────────────┘*/
  18. #ifdef __BETA__
  19.   #define PGM_VER "2.06 Beta"
  20. #else
  21.   #define PGM_VER "2.06"
  22. #endif
  23.  
  24. #define COPYRIGHT   "(c) Copyright Per Jessen, 1994-1995.\n" \
  25.                     "All rights reserved."
  26.  
  27. #define SERVER_LOGO "WFDOS Server Version "PGM_VER" "COPYRIGHT"\n"
  28. #define CLIENT_LOGO "WFDOS Client Version "PGM_VER" "COPYRIGHT"\n"
  29.  
  30. #define DOSSESTITLE "WFDOS Client Version "PGM_VER" running "
  31.  
  32. #define STDIN   0
  33. #define STDOUT  1
  34. #define STDERR  2
  35.  
  36. #define MAX_ARG 32            /* Maximum # of cmdline arguments accepted by Client */
  37.  
  38. #define MLVL_LOGOONLY 1
  39. #define MLVL_CRUNTIME 2
  40. #define MLVL_SRUNTIME 3
  41. #define MLVL_DEFAULT  MLVL_LOGOONLY
  42.  
  43. #define FAIL_CREATEPIPE_RC    10
  44. #define FAIL_CREATEPIPE_MS    "DosCreateNPipe failed"
  45. #define FAIL_CREATEQUEUE_RC   11
  46. #define FAIL_CREATEQUEUE_MS   "DosCreateQueue failed"
  47. #define FAIL_READQUEUE_RC     12
  48. #define FAIL_READQUEUE_MS     "DosReadQueue failed"
  49. #define FAIL_STARTSESSION_RC  13
  50. #define FAIL_STARTSESSION_MS  "DosStartSession failed"
  51. #define FAIL_DOSCONNECT_RC    14
  52. #define FAIL_DOSCONNECT_MS    "DosConnectNPipe failed"
  53. #define FAIL_WRITE2PIPE_RC    15
  54. #define FAIL_WRITE2PIPE_MS    "DosWrite failed"
  55. #define FAIL_NODOSCLIENT_RC   16
  56. #define FAIL_NODOSCLIENT_MS   "Unable to locate DOS-Client "CLIENTNAME
  57. #define ARGS_NODOSPROGRAM_RC  17
  58. #define ARGS_NODOSPROGRAM_MS  "No DOS-program specified"
  59. #define WARN_NOOPTIONFILE_RC  16
  60. #define WARN_NOOPTIONFILE_MS  "Unable to locate option-file"
  61.  
  62. #define ABORT                 "processing aborted"
  63. #define PIPESIZE              4096   /* 4k buffer                          */
  64. #define PIPE_TIMEOUT          5000   /* 5 seconds timeout for DosWaitNPipe */
  65. #define PIPE_PREF             "\\PIPE\\"
  66. #define BFR_SIZE              256   /* Buffer-size for DosRead            */
  67.  
  68. #define ENV_VDMOPT            "WFDOS_VDMOPT"
  69. #define CLIENTNAME            "WFDOS-C.EXE"
  70.  
  71. #define CLIENTRC_IDENT        "3149813498723897"  /* Any unique sequence will do */
  72. #define SERVER_IDENT          "0987987632544565"  /* Ditto                       */
  73.  
  74. #ifndef TRUE
  75.   #define TRUE 1
  76.   #define FALSE 0
  77. #endif
  78.  
  79. #ifndef __OS2__
  80.   #define DosBeep(f,d) sound(f);delay(d);nosound();
  81. #endif
  82.