Export (0) Print
Expand All

2.1.2 FileAttributesFlags

The FileAttributesFlags structure defines bits that specify the file attributes of the link target, if the target is a file system item. File attributes can be used if the link target is not available, or if accessing the target would be inefficient. It is possible for the target items attributes to be out of sync with this value.


0

1

2

3

4

5

6

7

8

9
1
0

1

2

3

4

5

6

7

8

9
2
0

1

2

3

4

5

6

7

8

9
3
0

1

A

B

C

D

E

F

G

H

I

J

K

L

M

N

O

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

Where the bits are defined as:

Value Description

A

FILE_ATTRIBUTE_READONLY

The file or directory is read-only. For a file, if this bit is set, applications can read the file but cannot write to it or delete it. For a directory, if this bit is set, applications cannot delete the directory.

B

FILE_ATTRIBUTE_HIDDEN

The file or directory is hidden. If this bit is set, the file or folder is not included in an ordinary directory listing.

C

FILE_ATTRIBUTE_SYSTEM

The file or directory is part of the operating system or is used exclusively by the operating system.

D

Reserved1

A bit that MUST be zero.

E

FILE_ATTRIBUTE_DIRECTORY

The link target is a directory instead of a file.

F

FILE_ATTRIBUTE_ARCHIVE

The file or directory is an archive file. Applications use this flag to mark files for backup or removal.

G

Reserved2

A bit that MUST be zero.

H

FILE_ATTRIBUTE_NORMAL

The file or directory has no other flags set. If this bit is 1, all other bits in this structure MUST be clear.

I

FILE_ATTRIBUTE_TEMPORARY

The file is being used for temporary storage.

J

FILE_ATTRIBUTE_SPARSE_FILE

The file is a sparse file.

K

FILE_ATTRIBUTE_REPARSE_POINT

The file or directory has an associated reparse point.

L

FILE_ATTRIBUTE_COMPRESSED

The file or directory is compressed. For a file, this means that all data in the file is compressed. For a directory, this means that compression is the default for newly created files and subdirectories.

M

FILE_ATTRIBUTE_OFFLINE

The data of the file is not immediately available.

N

FILE_ATTRIBUTE_NOT_CONTENT_INDEXED

The contents of the file need to be indexed.

O

FILE_ATTRIBUTE_ENCRYPTED

The file or directory is encrypted. For a file, this means that all data in the file is encrypted. For a directory, this means that encryption is the default for newly created files and subdirectories.

 
Show:
© 2015 Microsoft