home *** CD-ROM | disk | FTP | other *** search
/ C/C++ User's Journal & Wi…eveloper's Journal Tools / C-C__Users_Journal_and_Windows_Developers_Journal_Tools_1997.iso / sysembed / int21.edh < prev    next >
Encoding:
Text File  |  1995-03-30  |  6.8 KB  |  117 lines

  1. [ 2. DOS INT 21h Interface]
  2.                  EMBEDDED DOS INTERRUPT 21H FUNCTIONS
  3. ════════════════════════════════════════════════════════════════════════
  4. Embedded DOS supports all of the INT 21h functions called by MS-DOS
  5. programs.  Because it was designed for real-time applications, all
  6. these function calls are reentrant; your application may perform any
  7. combination of these calls simultaneously with multiple threads (tasks)
  8. without fear of clobbering the static data structures found in other
  9. DOS operating systems.
  10.  
  11. CODE    DOS FUNCTION            DESCRIPTION
  12. ════════════════════════════════════════════════════════════════════════
  13. 0x00    DOSTERMINATE            Terminate program.
  14. 0x01    DOSCONINPUT             Read console character with echo.
  15. 0x02    DOSCONOUTPUT            Write character to console.
  16. 0x03    DOSAUXINPUT             Read from AUX device.
  17. 0x04    DOSAUXOUTPUT            Write to AUX device.
  18. 0x05    DOSPRNOUTPUT            Write to PRN device.
  19. 0x06    DOSCONIO                Read/write to console (direct).
  20. 0x07    DOSCONINPUTRAW          Read raw console char without echo.
  21. 0x08    DOSCONINPUTRAW2         Read raw console char without echo.
  22. 0x09    DOSCONSTROUTPUT         Write string to console.
  23. 0x0a    DOSCONSTRINPUT          Read string from console.
  24. 0x0b    DOSCONGETSTATUS         Get status of input buffer.
  25. 0x0c    DOSCONFLUSH             Flush input buffer & exec command.
  26. 0x0d    DOSDISKRESET            Reset diskette subsystem.
  27. 0x0e    DOSSETDEFAULTDRIVE      Set default drive number.
  28. 0x0f    DOSOPENFCB              Open file using FCB.
  29. 0x10    DOSCLOSEFCB             Close file using FCB.
  30. 0x11    DOSFINDFIRSTFCB         Find first match using FCB.
  31. 0x12    DOSFINDNEXTFCB          Find next match using FCB.
  32. 0x13    DOSDELETEFCB            Delete file using FCB.
  33. 0x14    DOSREADFCB              Sequential file read using FCB.
  34. 0x15    DOSWRITEFCB             Sequential file write using FCB.
  35. 0x16    DOSCREATEFCB            Create file using FCB.
  36. 0x17    DOSRENAMEFCB            Rename file using FCB.
  37. 0x18    DOSGETLOGIN             Return login vector (CP/M compatibility).
  38. 0x19    DOSGETDEFAULTDRIVE      Get default drive using FCB.
  39. 0x1a    DOSSETDTA               Set disk transfer address for FCB.
  40. 0x1b    DOSGETDEFAULTINFO       Get allocation info for default drive.
  41. 0x1c    DOSGETINFO              Get allocation info for specific drive.
  42. 0x1d    DOSGETREADONLYVECTOR    Get R/O vector (CP/M compatibility).
  43. 0x1e    DOSSETFILEATTRIBUTES    Set file attr (CP/M compatibility).
  44. 0x1f    DOSGETDEFAULTDPB        Get ptr to default DPB.
  45. 0x20    DOSUSERCODE             Get/set user code (CP/M compatibility).
  46. 0x21    DOSRANDOMREADFCB        Random read on FCB.
  47. 0x22    DOSRANDOMWRITEFCB       Random write on FCB.
  48. 0x23    DOSGETFILESIZEFCB       Get size of file on FCB.
  49. 0x24    DOSSETRANDOMRECFCB      Set random record position on FCB.
  50. 0x25    DOSSETVECTOR            Set interrupt vector.
  51. 0x26    DOSCREATEPSP            Create program segment prefix.
  52. 0x27    DOSRANDOMREADBLKFCB     Random read (block I/O) on FCB.
  53. 0x28    DOSRANDOMWRITEBLKFCB    Random write (block I/O) on FCB.
  54. 0x29    DOSPARSEFILENAME        Parse filename in FCB.
  55. 0x2a    DOSGETDATE              Get system date.
  56. 0x2b    DOSSETDATE              Set system date.
  57. 0x2c    DOSGETTIME              Get system time.
  58. 0x2d    DOSSETTIME              Set system time.
  59. 0x2e    DOSSETVERIFY            Set disk I/O verify mode on or off.
  60. 0x2f    DOSGETDTA               Get disk transfer address.
  61. 0x30    DOSGETVERSION           Get MS-DOS compatibility version #.
  62. 0x31    DOSTSR                  Terminate and stay resident in memory.
  63. 0x32    DOSGETDPB               Get ptr to DPB.
  64. 0x33    DOSBREAKFLAG            Get/set break flag for Ctrl-C.
  65. 0x34    DOSGETVAR               Get DOS variables address.
  66. 0x35    DOSGETVECTOR            Get interrupt vector.
  67. 0x36    DOSGETDISKFREE          Get disk free space.
  68. 0x37    DOSSWITCHAR             Get/set switch character.
  69. 0x38    DOSCOUNTRYINFO          Get/set country information.
  70. 0x39    DOSCREATEDIR            Create subdirectory.
  71. 0x3a    DOSDELETEDIR            Delete subdirectory.
  72. 0x3b    DOSSETDIR               Set current directory.
  73. 0x3c    DOSCREATE               Create or truncate file.
  74. 0x3d    DOSOPEN                 Open file or device.
  75. 0x3e    DOSCLOSE                Close handle to file or device.
  76. 0x3f    DOSREAD                 Read file or device.
  77. 0x40    DOSWRITE                Write file or device.
  78. 0x41    DOSDELETE               Delete file.
  79. 0x42    DOSSETPOS               Set file pointer position.
  80. 0x43    DOSFILEATTR             Get/set file attributes.
  81. 0x44    DOSDEVIOCTL             General device I/O control.
  82. 0x45    DOSDUPLICATE            Duplicate handle.
  83. 0x46    DOSFORCEDUPLICATE       Force duplicate handle.
  84. 0x47    DOSGETDIR               Get current directory.
  85. 0x48    DOSALLOCSEG             Allocate memory segment.
  86. 0x49    DOSFREESEG              Free memory segment.
  87. 0x4a    DOSSIZESEG              Change size of memory segment.
  88. 0x4b    DOSEXEC                 Load/execute program/overlay.
  89. 0x4c    DOSEXIT                 Terminate process.
  90. 0x4d    DOSWAIT                 Wait for process to get return code.
  91. 0x4e    DOSFINDFIRST            Find first file in pattern.
  92. 0x4f    DOSFINDNEXT             Find next file in pattern.
  93. 0x50    DOSSETPSP               Set current PSP.
  94. 0x51    DOSGETPSP               Get current PSP.
  95. 0x52    DOSGETANCHOR            Get anchor block.
  96. 0x53    DOSBPBTODPB             Convert BPB to DPB.
  97. 0x54    DOSGETVERIFY            Get verify flag status.
  98. 0x55    DOSDUPPSP               Duplicate PSP for DOSEXEC.
  99. 0x56    DOSRENAME               Rename file.
  100. 0x57    DOSTIMESTAMP            Get/set file date/time stamp.
  101. 0x58    DOSALLOCSTRAT           Get/set memory allocation strategy.
  102. 0x59    DOSGETEXTERROR          Get extended error information.
  103. 0x5a    DOSCREATETEMPFILE       Create a temporary file.
  104. 0x5b    DOSCREATENEWFILE        Create a new file.
  105. 0x5c    DOSLOCK                 Lock/unlock byte range in file.
  106. 0x5d    DOSMSNET                MS-NET support.
  107. 0x5e    DOSMACHINEINFO          Get/set machine name/printer setup.
  108. 0x5f    DOSNETWORK              Perform network operations.
  109. 0x60    DOSCANNONICALIZEPATH    Cannonicalize object pathname.
  110. 0x61    NOSUCHDOSCALL           Not required in MS-DOS 3.31.
  111. 0x62    DOSGETPSP               Get program segment prefix.
  112. 0x63    DOSGETLEADBYTETBL       Get lead byte table (not in 3.x).
  113. 0x64    NOSUCHDOSCALL           Not required in MS-DOS 3.31.
  114. 0x65    DOSGETEXTCOUNTRYINFO    Get extended country information.
  115. 0x66    DOSGETSETCODEPAGE       Get or set the current code page.
  116. 0x67    DOSSETHANDLELIMIT       Set the max. # of handles/curr process.
  117. 0x68    DOSCOMMITFILE           Commit file to disk.