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
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to