Table of Contents

Note: This API call is for DOS and Win16 personality only. Use Family API for portability.

2018/09/07 05:04 · prokushev · 0 Comments

Int 21H, AH=43H, AL=00H

Version

2 and higher

Brief

GET FILE ATTRIBUTES

Family API

DosQFileMode, DosQFSInfo

Input

Return

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

Notes

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++.

See also

AX=4301h,AX=7143h/BL=00h

Note

Text based on Ralf Brown Interrupt List Release 61

2018/09/04 17:23 · prokushev · 0 Comments