[fpc-pascal] Dos unit for Windows

Marco Borsari borsa77 at libero.it
Wed Jan 30 16:03:55 CET 2019


On Wed, 30 Jan 2019 15:14:12 +0100
Marco van de Voort <fpc at pascalprogramming.org> wrote:

> Windows attributes can be > 8-bits, see e.g. 
> https://docs.microsoft.com/nl-nl/windows/desktop/FileIO/file-attribute-constants.

But the Dos unit is in Windows for compatibility, if one need the
extended attributes there is the equivalent function in SysUtils.

> https://www.freepascal.org/docs-html/rtl/dos/getfattr.html however says 
> that they _can_ be examined for a list of attributes, not that others 
> might not be in it. The example code also only tests for attributes, and 
> never does something with all bits.

The FAT FS is freezed since long time and I think it is supposed
GetFAttr behaves in standard manner.
Anyway it is easy to remedy the problem directly in my source,
thank you for your assistance,
Marco
-- 
Simplex sigillum veri



More information about the fpc-pascal mailing list