home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 632.lha / CLIExe_v1.1 / System2.0.h < prev    next >
C/C++ Source or Header  |  1992-04-27  |  1KB  |  50 lines

  1.  
  2. typedef ULONG Tag;
  3.  
  4. struct TagItem    {
  5.     Tag        ti_Tag;
  6.     ULONG    ti_Data;
  7. };
  8.  
  9. /* ----    system tag values -----------------------------    */
  10. #define TAG_DONE    (0L)        /* terminates array of TagItems. ti_Data unused    */
  11. #define TAG_USER    (1L<<31)    /* differentiates user tags from system tags*/
  12.  
  13.  
  14. /* definitions for the System() call */
  15.  
  16. #define SYS_Dummy    TAG_USER + 32
  17. #define SYS_Input    TAG_USER + 33
  18. #define SYS_Output    TAG_USER + 34
  19. #define SYS_Asynch    TAG_USER + 35
  20.  
  21.  
  22. /* definitions for the CreateNewProc() call */
  23. /* you MUST specify one of NP_Seglist or NP_Entry.  All else is optional. */
  24.  
  25. #define NP_Dummy        TAG_USER + 1000
  26. #define NP_Seglist        TAG_USER + 1001
  27. #define NP_FreeSeglist    TAG_USER + 1002
  28. #define NP_Entry        TAG_USER + 1003
  29. #define NP_Input        TAG_USER + 1004
  30. #define NP_Output        TAG_USER + 1005
  31. #define NP_CloseInput    TAG_USER + 1006
  32. #define NP_CloseOutput    TAG_USER + 1007
  33. #define NP_Error        TAG_USER + 1008
  34. #define NP_CloseError    TAG_USER + 1009
  35. #define NP_CurrentDir    TAG_USER + 1010
  36. #define NP_StackSize    TAG_USER + 1011
  37. #define NP_Name            TAG_USER + 1012
  38. #define NP_Priority        TAG_USER + 1013
  39. #define NP_ConsoleTask    TAG_USER + 1014
  40.  
  41.  
  42. BPTR DupLockFromFH(BPTR fh);
  43. BPTR OpenFromLock(BPTR lock, long mode);
  44. LONG System(BYTE *command, struct TagItem *tags);
  45.  
  46. #pragma amicall(DOSBase, 0x174, DupLockFromFH(d1))
  47. #pragma amicall(DOSBase, 0x17a, OpenFromLock(d1,d2))
  48. #pragma amicall(DOSBase, 0x25e, System(d1,d2))
  49.  
  50.