Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- DOS 5.0 Ref. - <b>function 3eh close file with handle</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
Function 3Eh            Close File with Handle

    Closes an open file.

        Entry   AH = 3Eh
                BX = File handle

        Return  AX = Error code, if CF is set
                     | 06h Invalid handle

    ------------------------------------------------------------------

    This function flushes the file's buffers, unlocks any locked
    regions of the file, releases the handle, and updates the disk
    directory to reflect any changes in the file size, date, or time.

    Although closing a file invalidates the corresponding handle, DOS
    may reuse the handle to identify a file that is subsequently
    opened or created. Programs can use Is File or Device Remote
    (function 440ah) to determine whether a given handle is valid.

See Also: 3ch 3dh 4ch 5ah 68h Dev0Eh 440ah

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson