[fpc-pascal] Dos unit for Windows

Marco van de Voort fpc at pascalprogramming.org
Wed Jan 30 15:14:12 CET 2019

Op 2019-01-30 om 14:18 schreef Marco Borsari via fpc-pascal:
> I noted that two bytes are reported as a result, thought
> IIRC in DOS only the low byte is affected while the high one
> should be zero, so the assignment would become
>     attr:=l and $ff;
> Waiting for your comments,

Windows attributes can be > 8-bits, see e.g. 

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.

More information about the fpc-pascal mailing list