en:docs:dos:api:int21:45

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
en:docs:dos:api:int21:45 [2021/05/01 15:44] – created prokusheven:docs:dos:api:int21:45 [2024/05/18 06:15] (current) prokushev
Line 16: Line 16:
 ===== Input ===== ===== Input =====
  
- AH = 45h +  * AH = 45h 
- BX = file handle+  BX = file handle
  
 ===== Return ===== ===== Return =====
  
- CF clear if successful +  * CF clear if successful 
-     AX = new handle +    AX = new handle 
- CF set on error +  CF set on error 
-     AX = error code (04h,06h) (see #01680 at AH=59h/BX=0000h)+    AX = error code (04h,06h) (too many open files (no handles available), invalid handle)
  
 ===== Notes ===== ===== Notes =====
  
  
-  moving file pointer for either handle will also move it for the other, +moving file pointer for either handle will also move it for the other, because both will refer to the same system file table 
-   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 +for DOS versions prior to 3.3, file writes may be forced to disk by duplicating the file handle and closing the duplicate
-   duplicating the file handle and closing the duplicate+
                      
 ===== See also ===== ===== See also =====
  
- AH=3Dh,AH=46h+AH=[[en:docs:dos:api:int21:3d|3Dh]],AH=[[en:docs:dos:api:int21:46|46h]]
  
 ===== Note ===== ===== Note =====