en:docs:dos:api:int21:43:00

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:43:00 [2021/04/30 04:48] – created prokusheven:docs:dos:api:int21:43:00 [2025/08/02 06:58] (current) prokushev
Line 13: Line 13:
 ===== Family API ===== ===== Family API =====
  
 +[[en:docs:fapi:DosQFileMode]], [[en:docs:fapi:DosQFSInfo]]
  
 ===== Input ===== ===== Input =====
  
-        AX = 4300h +  * AX = 4300h 
-        DS:DX -> ASCIZ filename+  DS:DX -> ASCIZ filename
  
 ===== Return ===== ===== Return =====
  
- CF clear if successful +  * CF clear if successful 
-            CX = file attributes (see #01420) +    CX = file attributes 
-            AX = CX (DR DOS 5.0) +    AX = CX (DR DOS 5.0) 
-        CF set on error +  CF set on error 
-            AX = error code (01h,02h,03h,05h) (see #01680 at AH=59h)+    AX = error code (01h,02h,03h,05h) (see #01680 at AH=59h) 
 + 
 +Bitfields for file attributes: 
 +^ Bit(s) ^ Description ^ 
 +| 15-6 | unused | 
 +| 5 | archive | 
 +| 4 | directory | 
 +| 3 | volume label | 
 +| 2 | system | 
 +| 1 | hidden | 
 +| 0 | read-only | 
 + 
  
 ===== Macro ===== ===== Macro =====
Line 32: Line 45:
 ===== Notes ===== ===== Notes =====
  
-  under the FlashTek X-32 DOS extender, the filename pointer is in DS:EDX +under DR DOS 3.41 and 5.0, attempts to change the subdirectory bit are simply ignored without an error 
-        under DR DOS 3.41 and 5.0, attempts to change the subdirectory bit are + 
-          simply ignored without an error +BUG:    Windows for Workgroups returns error code 05h (access denied) instead of error code 02h (file not found) when attempting to get the attributes of a nonexistent file.  This causes open() with O_CREAT and fopen() with the "w" mode to fail in Borland C++.
- BUG:    Windows for Workgroups returns error code 05h (access denied) instead +
-          of error code 02h (file not found) when attempting to get the +
-          attributes of a nonexistent file.  This causes open() with O_CREAT +
-          and fopen() with the "w" mode to fail in Borland C++.+
  
 ===== See also ===== ===== See also =====
  
- AX=4301h,AX=4310h,AX=7143h,AH=B6h,INT 2F/AX=110Fh,INT 60/DI=0517h+AX=[[en:docs:dos:api:int21:43:01|4301h]],AX=[[en:docs:dos:api:int21:71:43:00|7143h/BL=00h]]
  
 ===== Note ===== ===== Note =====