[fpc-pascal] [Windows] FileGetAttr reports faHidden on e.g. C:\
Bart
bartjunk64 at gmail.com
Wed Mar 4 16:01:46 CET 2015
Hi,
Kind of off-topic.
While working on Lazarus' TShellTreeView component, it was brought to
my attention that FileGetAttr('C:\') returns an attribute that has
faHidden in it.
This is kind of unexpected.
Well actually it reports $16: faDirectory + faHidden + faSysFile on
Win7-64 (32-bit fpc)
On Win98SE it reports $10: faDirectory.
On Win7 FileGteAttr reports $16 on any path that is the root of a
drive, unless it is a 'substituted" drive (subst X: path/to/folder).
Does anybody know when this behaviour of Windows changed, and why?
Bart
More information about the fpc-pascal
mailing list