Hvordan pokker... (flags)
Jeg har en funktion, som returnerer variablen dwFileAttributes, som indeholder et antal flags, som beskrevet her:dwFileAttributes:
One or more of the following flags identifying the file\'s attributes:
FILE_ATTRIBUTE_ARCHIVE = &H20
An archive file (which most files are).
FILE_ATTRIBUTE_COMPRESSED = &H800
A file residing in a compressed drive or directory.
FILE_ATTRIBUTE_DIRECTORY = &H10
A directory instead of a file.
FILE_ATTRIBUTE_HIDDEN = &H2
A hidden file, not normally visible to the user.
FILE_ATTRIBUTE_NORMAL = &H80
An attribute-less file (cannot be combined with other attributes).
FILE_ATTRIBUTE_READONLY = &H1
A read-only file.
FILE_ATTRIBUTE_SYSTEM = &H4
A system file, used exclusively by the operating system.
Hvordan pokker er det lige, at jeg finder ud af om et bestemt af disse flags er sat?
