Int 21/AH=45h

lup.gif ldown.gif Interrups Categories Contents

rbline.gif

DOS 2+ - DUP - DUPLICATE FILE HANDLE

AH = 45h
BX = file handle

Return:
CF clear if successful AX = new handle CF set on error AX = error code (04h,06h) (see #01680 at AH=59h/BX=0000h)

Notes: Moving file pointer for either handle will also move it for the other, because both will refer to the same system file table. For DOS versions prior to 3.3, file writes may be forced to disk by duplicating the file handle and closing the duplicate

See Also: AH=3Dh - AH=46h

Category: DOS Kernel - Int 21h - D

rbline.gif

lup.gif ldown.gif Interrups Categories Contents