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://docs.microsoft.com/nl-nl/windows/desktop/FileIO/file-attribute-constants.

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.

_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to