no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
Next revision | |||
— | en:docs:fapi:dosqfilemode [2018/08/29 11:52] – created prokushev | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | |||
+ | This call queries the mode (attribute) of the specified file. | ||
+ | |||
+ | ==Syntax== | ||
+ | | ||
+ | |||
+ | ==Parameters== | ||
+ | ; | ||
+ | : | ||
+ | ; | ||
+ | ''' | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | These bits can be set individually or in combination. For example, an attribute value of 0021H (bits 5 and 0 set to 1) indicates a read-only file that is archived. | ||
+ | ; Reserved (ULONG) - input : Reserved must be set to zero. | ||
+ | |||
+ | ==Return Code== | ||
+ | rc (USHORT) - return | ||
+ | Return code descriptions are: | ||
+ | * 0 | ||
+ | * 2 | ||
+ | * 3 | ||
+ | * 26 ERROR_NOT_DOS_DISK | ||
+ | * 87 ERROR_INVALID_PARAMETER | ||
+ | * 108 ERROR_DRIVE_LOCKED | ||
+ | * 206 ERROR_FILENAME_EXCED_RANGE | ||
+ | |||
+ | ==Remarks== | ||
+ | The " | ||
+ | |||
+ | ==Example Code== | ||
+ | ===C Binding=== | ||
+ | <PRE> | ||
+ | #define INCL_DOSFILEMGR | ||
+ | |||
+ | USHORT | ||
+ | |||
+ | PSZ | ||
+ | PUSHORT CurrentAttribute; | ||
+ | ULONG | ||
+ | |||
+ | USHORT | ||
+ | </ | ||
+ | |||
+ | ===MASM Binding=== | ||
+ | <PRE> | ||
+ | EXTRN DosQFileMode: | ||
+ | INCL_DOSFILEMGR | ||
+ | |||
+ | PUSH@ ASCIIZ | ||
+ | PUSH@ WORD CurrentAttribute ;Data area (returned) | ||
+ | PUSH | ||
+ | CALL | ||
+ | |||
+ | Returns WORD | ||
+ | </ | ||
+ | |||
+ | |||
+ | |||
+ | ====== Note ====== | ||
+ | |||
+ | Text based on http:// | ||
+ | |||
+ | {{page> | ||