Compartir a través de


2.4 File Information Classes

File information classes are numerical values (specified by the Level column in the following table) that specify what information for a file is to be queried or set or for local use<87>. File information classes can require additional information to be included in the query or the response. When appropriate, the additional information is detailed in the file information class description. The table indicates which file information classes are supported for query and set operations.<88>

File information class

Level

Uses

FileAccessInformation

8

Query

FileAlignmentInformation

17

Query

FileAllInformation

18

Query

FileAllocationInformation

19

Set

FileAlternateNameInformation

21

Query

FileAttributeTagInformation

35

Query

FileBasicInformation

4

Query, Set

FileBothDirectoryInformation

3

Query

FileCompressionInformation

28

Query

FileDirectoryInformation

1

Query

FileDispositionInformation

13

Set

FileEaInformation

7

Query

FileEndOfFileInformation

20

Set

FileFullDirectoryInformation

2

Query

FileFullEaInformation

15

Query, Set

FileHardLinkInformation

46

LOCAL

FileId64ExtdBothDirectoryInformation

79

Query<89>

FileId64ExtdDirectoryInformation

78

Query<90>

FileIdAllExtdBothDirectoryInformation

81

Query<91>

FileIdAllExtdDirectoryInformation

80

Query<92>

FileIdBothDirectoryInformation

37

Query

FileIdExtdDirectoryInformation

60

Query

FileIdFullDirectoryInformation

38

Query

FileIdGlobalTxDirectoryInformation

50

LOCAL

FileIdInformation

59

Query<93>

FileInternalInformation

6

Query

FileLinkInformation

11

Set

FileMailslotQueryInformation

26

LOCAL

FileMailslotSetInformation

27

LOCAL

FileModeInformation

16

Query, Set<94>

FileMoveClusterInformation

31

<95>

FileNameInformation

9

LOCAL

FileNamesInformation

12

Query

FileNetworkOpenInformation

34

Query

FileNormalizedNameInformation

48

Query<96>

FileObjectIdInformation

29

LOCAL

FilePipeInformation

23

Query, Set

FilePipeLocalInformation

24

Query

FilePipeRemoteInformation

25

Query

FilePositionInformation

14

Query, Set

FileQuotaInformation

32

Query, Set<97>

FileRenameInformation

10

Set

FileReparsePointInformation

33

LOCAL

FileSfioReserveInformation

44

LOCAL

FileSfioVolumeInformation

45

<98>

FileShortNameInformation

40

Set

FileStandardInformation

5

Query

FileStandardLinkInformation

54

LOCAL

FileStreamInformation

22

Query

FileTrackingInformation

36

LOCAL

FileValidDataLengthInformation

39

Set

If an information class is specified that does not match the usage in the above table, STATUS_INVALID_INFO_CLASS MUST be returned. If a file system does not support a specific file information class, STATUS_INVALID_PARAMETER MUST be returned.