Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Ralf Brown's Interrupt List (Part 1,2) - int 21 - dos 2+ - ioctl - get device information http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
INT 21 - DOS 2+ - IOCTL - GET DEVICE INFORMATION
        AX = 4400h
        BX = file or device handle
Return: CF set on error
           AX = error code (see AH=59h)
        CF clear if successful
           DX = device info
           If bit 7 set: (character device)
               bit 0: console input device
                   1: console output device
                   2: NUL device
                   3: CLOCK$ device
                   4: device is special (uses INT 29)
                   5: binary (raw) mode
                   6: Not EOF
                  11: media not removable???
                  12: network device (DOS 3+)
                  14: can process IOCTL control strings (see AL = 02h-05h)
           If bit 7 clear: (file)
               bits 0-5 are block device number
                   6: file has not been written
                  11: media not removable
                  12: network device (DOS 3+)
                  14: don't set file date/time on closing (DOS 3+)
                  15: file is remote (DOS 3+)
SeeAlso: AX=4401h,INT 2F/AX=122Bh

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson