IoctlHandleInfoRec
DOS Fn 440aH (is file or device remote) returns this layout in DX. The
meanings of the bits vary depending upon the value in bit 7 (file/device).
IoctlHandleInfoFileRec ─── layout when describing a disk file
1 1 1 1 1 1
╓5┬4┬3┬2┬1┬0┬9┬8╥7┬6┬5┬4┬3┬2┬1┬0╖
║r│t│0│i│0 0 0 0║0│o│ drive id ║
╙╥┴╥┴─┴╥┴─┴─┴─┴─╨╥┴╥┴╥┴─┴─┴─┴─┴╥╜ bit mask
║ ║ ║ ║ ║ ╚═════════╩═►0-5: 003fH drive ID (0=A, 1=B, etc.)
║ ║ ║ ║ ╚═════════════► 6: 0040H file has not been written to
║ ║ ║ ╚═══════════════► 7: 0080H 0=file
║ ║ ╚═════════════════════════► 12: 1000H 1=no inherit
║ ╚═════════════════════════════► 14: 4000H 1=date/time not set on close
╚═══════════════════════════════► 15: 8000H 1=remote file; 0=local file
IoctlHandleInfoDevRec ─── layout when describing a device
1 1 1 1 1 1
╓5┬4┬3┬2┬1┬0┬9┬8╥7┬6┬5┬4┬3┬2┬1┬0╖
║r│0│p│i│s│0 0 0║1│e│b│f│c│n│o│i║
╙╥┴─┴╥┴╥┴╥┴─┴─┴─╨╥┴╥┴╥┴╥┴╥┴╥┴╥┴╥╜ bit mask
║ ║ ║ ║ ║ ║ ║ ║ ║ ║ ║ ╚═► 0: 0001H Console Input device
║ ║ ║ ║ ║ ║ ║ ║ ║ ║ ╚═══► 1: 0002H Console Output device
║ ║ ║ ║ ║ ║ ║ ║ ║ ╚═════► 2: 0004H Null device
║ ║ ║ ║ ║ ║ ║ ║ ╚═══════► 3: 0008H Clock device
║ ║ ║ ║ ║ ║ ║ ╚═════════► 4: 0010H special device; fast output
║ ║ ║ ║ ║ ║ ╚═══════════► 5: 0020H binary mode; 0=ASCII
║ ║ ║ ║ ║ ╚═════════════► 6: 0040H not EOF; 0=EOF on input
║ ║ ║ ║ ╚═══════════════► 7: 0080H 1=device
║ ║ ║ ╚═══════════════════════► 11: 0800H network spooler
║ ║ ╚═════════════════════════► 12: 1000H no inherit
║ ╚═══════════════════════════► 13: 2000H named pipe
╚═══════════════════════════════► 15: 8000H 1=remote device; 0=local
See Also: fn 440aH (IOCTL is file/device remote)
Device Attribute
Device Drivers
DOS Functions
-♦-