home *** CD-ROM | disk | FTP | other *** search
/ Turbo Toolbox / Turbo_Toolbox.iso / tasm / dos.inc < prev    next >
Text File  |  1988-08-28  |  6KB  |  108 lines

  1.  
  2. ;   FILENAME: DOS.EQU
  3. ;
  4. ;   Copyright (c) 1988 by Borland International, Inc.
  5. ;
  6. ;   Description: This include file contains symbolic equates representing the
  7. ;   DOS function calls and their associated services.
  8.  
  9. DOS_FUNCTION            = 021h ; Dos Function call
  10. STDOUT                  = 001h ; File handle for Standard Output device
  11. STDERR                  = 002h ; File handle for Standard Error device
  12.  
  13. DOS_PROGRAM_TERMINATE   = 000h ; Terminate the program
  14. DOS_READ_KBD_ECHO       = 001h ; Read the keyboard and echo to the screen
  15. DOS_WRITE_CHARACTER     = 002h ; Output a character
  16. DOS_AUXILIARY_INPUT     = 003h ; Read character from auxiliary device
  17. DOS_AUXILIARY_OUTPUT    = 004h ; Write a character to the auxiliary device
  18. DOS_PRINTER_OUTPUT      = 005h ; Send character to standard list device
  19. DOS_CONSOLE_IO          = 006h ; Console Input/Output
  20. DOS_UNFILTERED_INPUT    = 007h ; Unfiltered character input without echo
  21. DOS_CHARACTER_INPUT     = 008h ; Character input without echo
  22. DOS_WRITE_STRING        = 009h ; Display a '$' terminated string
  23. DOS_BUFFERED_INPUT      = 00Ah ; Read text and store it in a buffer
  24. DOS_GET_INPUT_STATUS    = 00Bh ; Check if input is available
  25. DOS_RESET_INPUT         = 00Ch ; Clear the input buffer and check for input
  26. DOS_DISK_RESET          = 00Dh ; Flush all DOS file buffers to disk
  27. DOS_CHANGE_DISK_DRIVE   = 00Eh ; Set the default disk drive
  28. DOS_OPEN_FCB_FILE       = 00Fh ; Open a file using FCB's
  29. DOS_CLOSE_FCB_FILE      = 010h ; Close a file that uses FCB's
  30. DOS_FIND_FIRST_FCB      = 011h ; Search for the first matching file
  31. DOS_FIND_NEXT_FCB       = 012h ; Find the next matching file
  32. DOS_DELETE_FCB_FILE     = 013h ; Delete a file using FCB's
  33. DOS_SEQUENTIAL_READ     = 014h ; Reads the next block from a fil
  34. DOS_SEQUENTIAL_WRITE    = 015h ; Writes the next block of data to a file
  35. DOS_CREATE_FCB_FILE     = 016h ; Create and/or open a file for i/o
  36. DOS_RENAME_FCB_FILE     = 017h ; Rename a file using FCB's
  37. DOS_GET_DISK_DRIVE      = 019h ; Get the current disk drive
  38. DOS_SET_DTA             = 01Ah ; Set the Disk Transfer Area address
  39. DOS_DEFAULT_DRIVE_INFO  = 01Bh ; Get allocation information for the default drive
  40. DOS_DRIVE_INFO          = 01Ch ; Get allocation information for a specific drive
  41. DOS_RANDOM_READ         = 021h ; Perform a random file read
  42. DOS_RANDOM_WRITE        = 022h ; Perform random file write
  43. DOS_GET_FILE_SIZE       = 023h ; Get file size in records
  44. DOS_SET_RECORD_NUMBER   = 024h ; Set the random record number
  45. DOS_SET_VECTOR          = 025h ; Set an interrupt vector
  46. DOS_CREATE_PSP          = 026h ; Create a Program Segment Prefix(PSP)
  47. DOS_RANDOM_BLOCK_READ   = 027h ; Random block read of a file
  48. DOS_RANDOM_BLOCK_WRITE  = 028h ; Random block write to a file
  49. DOS_PARSE_FILENAME      = 029h ; Parse a filename
  50. DOS_GET_DATE            = 02Ah ; Get the DOS Date
  51. DOS_SET_DATE            = 02Bh ; Set the DOS Date
  52. DOS_GET_TIME            = 02Ch ; Get the DOS Time
  53. DOS_SET_TIME            = 02Dh ; Set the DOS Time
  54. DOS_SET_VERIFY_FLAG     = 02Eh ; Set the DOS verify flag
  55. DOS_GET_DTA             = 02Fh ; Get the DTA address
  56. DOS_GET_DOS_VERSION     = 030h ; Get the MS-DOS Version #
  57. DOS_KEEP                = 031h ; Terminate and stay resident
  58. DOS_GET_SET_CTRL_BREAK  = 033h ; Get or set the Ctrl-Break flag
  59. DOS_GET_VECTOR          = 035h ; Get the interrupt vector
  60. DOS_GET_DISK_SPACE      = 036h ; Returns allocation info. about a disk
  61. DOS_GET_SET_COUNTRY     = 038h ; Get or set the current info. about the country
  62. DOS_MAKE_DIRECTORY      = 039h ; Create a directory
  63. DOS_DELETE_DIRECTORY    = 03Ah ; Delete a directory
  64. DOS_SET_CURRENT_DIR     = 03Bh ; Set the current directory
  65. DOS_CREATE_FILE         = 03Ch ; Create or truncate a file
  66. DOS_OPEN_FILE           = 03Dh ; Open an existing file
  67. DOS_CLOSE_FILE          = 03Eh ; Close a file
  68. DOS_READ_FROM_HANDLE    = 03Fh ; Read from DOS file handle
  69. DOS_WRITE_TO_HANDLE     = 040h ; Write to File Handle
  70. DOS_DELETE_FILE         = 041h ; Delete a file
  71. DOS_MOVE_FILE_POINTER   = 042h ; Move the file pointer
  72. DOS_GET_SET_ATTRIBUTES  = 043h ; Get/Set File Attributes
  73. DOS_IOCTL               = 044h ; Device-driver control
  74. DOS_DUPLICATE_HANDLE    = 045h ; Duplicate file handle
  75. DOS_FORCE_DUP_HANDLE    = 046h ; Force duplicate file handles
  76. DOS_GET_DIRECTORY       = 047h ; Get the current directory
  77. DOS_ALLOCATE_MEMORY     = 048h ; Allocate memory blocks
  78. DOS_FREE_MEMORY         = 049h ; Release memory blocks
  79. DOS_MODIFY_MEMORY       = 04Ah ; Modify a memory block
  80. DOS_EXEC                = 04Bh ; Execute a program
  81. DOS_TERMINATE_EXE       = 04Ch ; Terminate program
  82. DOS_GET_RETURN_CODE     = 04Dh ; Get DOS return code
  83. DOS_FIND_FIRST          = 04Eh ; Find first directory entry
  84. DOS_FIND_NEXT           = 04Fh ; Find next directory entry
  85. DOS_GET_VERIFY_FLAG     = 054h ; Get the value of DOS's verify flag
  86. DOS_RENAME_FILE         = 056h ; Rename a file
  87. DOS_GET_SET_DATE_TIME   = 057h ; Read or Modify the time and date of a file
  88. DOS_GET_SET_ALLOCATION  = 058h ; Get or set DOS's memory allocation strategy
  89. DOS_GET_EXTENDED_ERRORS = 059h ; Get more detailed info. about a DOS error
  90. DOS_CREATE_TEMP_FILE    = 05Ah ; Create a temporary file
  91. DOS_CREATE_NEW_FILE     = 05Bh ; Create a new file
  92. DOS_CONTROL_ACCESS      = 05Ch ; Set access ability to a region in a file
  93.  
  94. DOS_NET_HARDWARE        = 05Eh ; Microsoft Network hardware info.
  95.  
  96. NET_GET_MACHINE_NAME    = 000h ; Get the name of the local machine
  97. NET_SET_PRINTER_SETUP   = 002h ; Set the printer's setup
  98. NET_GET_PRINTER_SETUP   = 003h ; Get the printer's setup
  99.  
  100. DOS_NET_SYSTEM          = 05Fh ; Microsoft Network system info.
  101.  
  102. NET_GET_REDIRECTION_LIST    = 002h ; Inspect the system redirection list
  103. NET_REDIRECT_DEVICE         = 003h ; Redirect a device
  104. NET_CANCEL_REDIRECT         = 004h ; Cancel the redirection of a device
  105.  
  106. DOS_GET_PSP             = 062h ; Get Program Segment Prefix(PSP)
  107. DOS_GET_LEAD_BYTE_TABLE = 063h ; Get the address of the system table
  108.