Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Ralf Brown's Interrupt List (Part 1,2) - int 21 - dos 2+ - force duplicate handle (forcdup,dup2) http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
INT 21 - DOS 2+ - FORCE DUPLICATE HANDLE (FORCDUP,DUP2)
        AH = 46h
        BX = existing file handle
        CX = new file handle
Return: CF set on error
            AX = error code (04h,06h) (see AH=59h)
        CF clear if successful
            AX = new file handle (undocumented)
Notes:  closes file with handle BX if it is still open
        DOS 3.30 hangs if BX=CX on entry
        moving file pointer for either handle will also move it for the other,
          because both will refer to the same system file table
SeeAlso: AH=3Dh,AH=45h

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