en:docs:dos:api:int21:3e

Note: This API call is for DOS and Win16 personality only. Use Family API for portability.

2018/09/07 05:04 · prokushev · 0 Comments

Int 21H, AH=3EH

Version

2 and higher

Brief

“CLOSE” - CLOSE FILE

Family API

Input

      AH = 3Eh
      BX = file handle

Return

CF clear if successful

          AX destroyed
      CF set on error
          AX = error code (06h) (see #01680 at AH=59h/BX=0000h)

Notes

if the file was written to, any pending disk writes are performed, the
        time and date stamps are set to the current time, and the directory
        entry is updated
      recent versions of DOS preserve AH because some versions of Multiplan
        had a bug which depended on AH being preserved
        

See also

AH=10h,AH=3Ch,AH=3Dh,INT 2F/AX=1106h,INT 2F/AX=1227h

Note

2018/09/04 17:23 · prokushev · 0 Comments