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 36H
   Summary  Notes  Example  Back
──────────────────────────────────────────────────────────────────────────────
 
  Description:  Get Drive Allocation Information
 
  Obtains selected information about a disk drive, from which the drive's
  capacity and remaining free space can be calculated.
 
  Input                                    Output
  ═════════════════════════════            ═══════════════════════════════
  AH=36H                                   If function successful
  DL=drive code (0=default, 1=A,           AX=sectors per cluster
     etc.)                                 BX=number of available clusters
                                           CX=bytes per sector
                                           DX=clusters per drive
                                           If function unsuccessful (drive
                                            invalid)
                                           AX=FFFFH
                                    -♦-