FSALLOCATE struc
fsalloc_idFileSystem dd ?
fsalloc_cSectorUnit dd ?
fsalloc_cUnit dd ?
fsalloc_cUnitAvail dd ?
fsalloc_cbSector dw ?
FSALLOCATE ends
EXTRN DosQFSInfo:FAR
INCL_DOSFILEMGR EQU 1
PUSH WORD DriveNumber ;Drive number
PUSH WORD FSInfoLevel ;File system data required
PUSH@ OTHER FSInfoBuf ;File system info buffer (returned)
PUSH WORD FSInfoBufSize ;File system info buffer size
CALL DosQFSInfo
Returns WORD