• Microsoft Developer Network
  • ▶Highlights
  • ▶Technical Articles
  • ▶Sample Code
  • ▶Resource and Strategy
  • ▶Knowledge Base and Bug Lists
  • ▼Books and Magazine Articles
    • ▶Programming Windows 3.0 (Petzold)
    • ▼Advanced MS-DOS Programming
      • Title Page
      • ▶Introduction
      • ▶PART 1 PROGRAMMING FOR MS-DOS
      • ▼PART 2 MS-DOS FUNCTIONS REFERENCE
        • PART 2 MS-DOS FUNCTIONS REFERENCE
        • Notes to the Reader
        • Int 21H Function Summary by Number
        • Int 21H Function Summary by Category
        • Int 20H [1.0] Terminate process
        • Int 21H [1.0] Function 00H Terminate process
        • Int 21H [1.0] Function 01H Character input with echo
        • Int 21H [1.0] Function 02H Character output
        • Int 21H [1.0] Function 03H Auxiliary input
        • Int 21H [1.0] Function 04H Auxiliary output
        • Int 21H [1.0] Function 05H Printer output
        • Int 21H [1.0] Function 06H Direct console I/O
        • Int 21H [1.0] Function 07H Unfiltered character input without echo
        • Int 21H [1.0] Function 08H Character input without echo
        • Int 21H [1.0] Function 09H Display string
        • Int 21H [1.0] Function 0AH (10) Buffered keyboard input
        • Int 21H [1.0] Function 0BH (11) Check input status
        • Int 21H [1.0] Function 0CH (12) Flush input buffer and then input
        • Int 21H [1.0] Function 0DH (13) Disk reset
        • Int 21H [1.0] Function 0EH (14) Select disk
        • Int 21H [1.0] Function 0FH (15) Open file
        • Int 21H [1.0] Function 10H (16) Close file
        • Int 21H [1.0] Function 11H (17) Find first file
        • Int 21H [1.0] Function 12H (18) Find next file
        • Int 21H [1.0] Function 13H (19) Delete file
        • Int 21H [1.0] Function 14H (20) Sequential read
        • Int 21H [1.0] Function 15H (21) Sequential write
        • Int 21H [1.0] Function 16H (22) Create file
        • Int 21H [1.0] Function 17H (23) Rename file
        • Int 21H Function 18H (24) Reserved
        • Int 21H [1.0] Function 19H (25) Get current disk
        • Int 21H [1.0] Function 1AH (26) Set DTA address
        • Int 21H [1.0] Function 1BH (27) Get default drive data
        • Int 21H [2.0] Function 1CH (28) Get drive data
        • Int 21H Function 1DH (29) Reserved
        • Int 21H Function 1EH (30) Reserved
        • Int 21H Function 1FH (31) Reserved
        • Int 21H Function 20H (32) Reserved
        • Int 21H [1.0] Function 21H (33) Random read
        • Int 21H [1.0] Function 22H (34) Random write
        • Int 21H [1.0] Function 23H (35) Get file size
        • Int 21H [1.0] Function 24H (36) Set relative record number
        • Int 21H [1.0] Function 25H (37) Set interrupt vector
        • Int 21H [1.0] Function 26H (38) Create new PSP
        • Int 21H [1.0] Function 27H (39) Random block read
        • Int 21H [1.0] Function 28H (40) Random block write
        • Int 21H [1.0] Function 29H (41) Parse filename
        • Int 21H [1.0] Function 2AH (42) Get date
        • Int 21H [1.0] Function 2BH (43) Set date
        • Int 21H [1.0] Function 2CH (44) Get time
        • Int 21H [1.0] Function 2DH (45) Set time
        • Int 21H [1.0] Function 2EH (46) Set verify flag
        • Int 21H [2.0] Function 2FH (47) Get DTA address
        • Int 21H [2.0] Function 30H (48) Get MS-DOS version number
        • Int 21H [2.0] Function 31H (49) Terminate and stay resident
        • Int 21H Function 32H (50) Reserved
        • Int 21H [2.0] Function 33H (51) Get or set break flag, get boot drive
        • Int 21H Function 34H (52) Reserved
        • Int 21H [2.0] Function 35H (53) Get interrupt vector
        • Int 21H [2.0] Function 36H (54) Get drive allocation information
        • Int 21H Function 37H (55) Reserved
        • Int 21H [2.0] Function 38H (56) Get or set country information
        • Int 21H [2.0] Function 39H (57) Create directory
        • Int 21H [2.0] Function 3AH (58) Delete directory
        • Int 21H [2.0] Function 3BH (59) Set current directory
        • Int 21H [2.0] Function 3CH (60) Create file
        • Int 21H [2.0] Function 3DH (61) Open file
        • Int 21H [2.0] Function 3EH (62) Close file
        • Int 21H [2.0] Function 3FH (63) Read file or device
        • Int 21H [2.0] Function 40H (64) Write file or device
        • Int 21H [2.0] Function 41H (65) Delete file
        • Int 21H [2.0] Function 42H (66) Set file pointer
        • Int 21H [2.0] Function 43H (67) Get or set file attributes
        • Int 21H [2.0] Function 44H (68) IOCTL (I/O control)
        • Int 21H [2.0] Function 44H (68) Subfunction 00H IOCTL: get device information
        • Int 21H [2.0] Function 44H (68) Subfunction 01H IOCTL: set device information
        • Int 21H [2.0] Function 44H (68) Subfunction 02H IOCTL: read control data from character device driver
        • Int 21H [2.0] Function 44H (68) Subfunction 03H IOCTL: write control data to character-device driver
        • Int 21H [2.0] Function 44H (68) Subfunction 04H IOCTL: read control data from block-device driver
        • Int 21H [2.0] Function 44H (68) Subfunction 05H IOCTL: write control data to block-device driver
        • Int 21H [2.0] Function 44H (68) Subfunction 06H IOCTL: check input status
        • Int 21H [2.0] Function 44H (68) Subfunction 07H IOCTL: check output status
        • Int 21H [3.0] Function 44H (68) Subfunction 08H IOCTL: check if block device is removable
        • Int 21H [3.1] Function 44H (68) Subfunction 09H IOCTL: check if block device is remote
        • Int 21H [3.1] Function 44H (68) Subfunction 0AH (10) IOCTL: check if handle is remote
        • Int 21H [3.1] Function 44H (68) Subfunction 0BH (11) IOCTL: change sharing retry count
        • Int 21H [3.2] Function 44H (68) Subfunction 0CH (12) IOCTL: generic I/O control for character devices
        • Int 21H [3.2] Function 44H Subfunction 0DH (13) IOCTL: generic I/O control for block devices
        • Int 21H [3.2] Function 44H (68) Subfunction 0EH (14) IOCTL: get logical drive map
        • Int 21H [3.2] Function 44H (68) Subfunction 0FH (15) IOCTL: set logical drive map
        • Int 21H [2.0] Function 45H (69) Duplicate handle
        • Int 21H [2.0] Function 46H (70) Redirect handle
        • Int 21H [2.0] Function 47H (71) Get current directory
        • Int 21H [2.0] Function 48H (72) Allocate memory block
        • Int 21H [2.0] Function 49H (73) Release memory block
        • Int 21H [2.0] Function 4AH (74) Resize memory block
        • Int 21H [2.0] Function 4BH (75) Execute program (EXEC)
        • Int 21H [2.0] Function 4CH (76) Terminate process with return code
        • Int 21H [2.0] Function 4DH (77) Get return code
        • Int 21H [2.0] Function 4EH (78) Find first file
        • Int 21H [2.0] Function 4FH (79) Find next file
        • Int 21H Function 50H (80) Reserved
        • Int 21H Function 51H (81) Reserved
        • Int 21H Function 52H (82) Reserved
        • Int 21H Function 53H (83) Reserved
        • Int 21H [2.0] Function 54H (84) Get verify flag
        • Int 21H Function 55H (85) Reserved
        • Int 21H [2.0] Function 56H (86) Rename file
        • Int 21H [2.0] Function 57H (87) Get or set file date and time
        • Int 21H [3.0] Function 58H (88) Get or set allocation strategy
        • Int 21H [3.0] Function 59H (89) Get extended error information
        • Int 21H [3.0] Function 5AH (90) Create temporary file
        • Int 21H [3.0] Function 5BH (91) Create new file
        • Int 21H [3.0] Function 5CH (92) Lock or unlock file region
        • Int 21H Function 5DH (93) Reserved
        • Int 21H [3.1] Function 5EH (94) Subfunction 00H Get machine name
        • Int 21H [3.1] Function 5EH (94) Subfunction 02H Set printer setup string
        • Int 21H [3.1] Function 5EH (94) Subfunction 03H Get printer setup string
        • Int 21H [3.1] Function 5FH (95) Subfunction 02H Get redirection list entry
        • Int 21H [3.1] Function 5FH (95) Subfunction 03H Redirect device
        • Int 21H [3.1] Function 5FH (95) Subfunction 04H Cancel device redirection
        • Int 21H Function 60H (96) Reserved
        • Int 21H Function 61H (97) Reserved
        • Int 21H [3.0] Function 62H (98) Get PSP address
        • Int 21H [2.25 only] Function 63H (99) Get DBCS lead byte table
        • Int 21H Function 64H (100) Reserved
        • Int 21H [3.3] Function 65H (101) Get extended country information
        • Int 21H [3.3] Function 66H (102) Get or set code page
        • Int 21H [3.3] Function 67H (103) Set handle count
        • Int 21H [3.3] Function 68H (104) Commit file
        • Int 21H Function 69H (105) Reserved
        • Int 21H Function 6AH (106) Reserved
        • Int 21H Function 6BH (107) Reserved
        • Int 21H [4.0] Function 6CH (108) Extended open file
        • Int 22H [1.0] Terminate handler address
        • Int 23H [1.0] Ctrl-C handler address
        • Int 24H [1.0] Critical-error handler address
        • Int 25H [1.0] Absolute disk read
        • Int 26H [1.0] Absolute disk write
        • Int 27H [1.0] Terminate and stay resident
        • Int 28H Reserved
        • Int 29H Reserved
        • Int 2AH Reserved
        • Int 2BH Reserved
        • Int 2CH Reserved
        • Int 2DH Reserved
        • Int 2EH Reserved
        • Int 2FH [3.0] Multiplex interrupt
        • Int 2FH [3.0] Function 01H Print spooler
        • Int 2FH [3.2] Function 02H ASSIGN
        • Int 2FH [3.2] Function 10H (16) SHARE
        • Int 2FH [3.3] Function B7H (183) APPEND
      • ▶PART 3 IBM ROM BIOS AND MOUSE FUNCTIONS REFERENCE
      • ▶PART 4 LOTUS/INTEL/MICROSOFT EMS FUNCTIONS REFERENCE
    • ▶MS-DOS Programmer's Reference
    • ▶MS Systems Journal
  • ▶Product Documentation
  • ▶Unsupported Tools & Utilities