qa.hlp (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
Int 21H Function 44H Subfunction 01H
   Summary  Notes  Back
──────────────────────────────────────────────────────────────────────────────
 
  Description:  IOCTL: Set Device Information
 
  Sets certain flags for a handle associated with a character device. This
  subfunction may not be used for a handle that is associated with a file.
 
  Input                                           Output
  ════════════════════════════════════            ════════════════════════
  AH=44H                                          If function successful
  AL=01H                                          Carry flag=clear
  BX=handle                                       If function unsuccessful
  DX=device information word                      Carry flag=set
     bits 8-15 = 0 (reserved)                     AX=error code
     bit  7    = 1 indicating a device
     bit  6    = 0 (reserved)
     bit  5    = 0 to select ASCII
                  ("cooked") mode
                 1 to select binary
                  ("raw") mode
     bit  4    = 0 (reserved)
     bit  3    = 1 if clock device
     bit  2    = 1 if NUL device
     bit  1    = 1 if standard output
     bit  0    = 1 if standard input
                                    -♦-