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 5AH
   Summary  Notes  Example  Back
──────────────────────────────────────────────────────────────────────────────
 
  Description:  Create Temporary File     DOS 3 Only
 
  Creates a file with a unique name, in the current or specified directory
  on the default or specified disk drive, and returns a handle that can be
  used by the program for subsequent access to the file. The name generated
  for the file is also returned in a buffer specified by the program.
 
  Input                                          Output
  ═══════════════════════════════════            ═════════════════════════
  AH=5AH                                         If function successful
  CX=attribute (bits can be combined)            Carry flag=clear
     Bit(s)  Significance (if set)               AX=handle
     0       read-only                           DS:DX=segment:offset of
     1       hidden                               complete ASCIIZ pathname
     2       system                              If function unsuccessful
     3-4     reserved (0)                        Carry flag=set
     5       archive                             AX=error code
     6-15    reserved (0)
  DS:DX=segment:offset of ASCIIZ path
                                    -♦-