共用方式為


WDF_FILE_INFORMATION_CLASS列舉 (wdffileobject.h)

[警告: UMDF 2 是最新版的 UMDF,並取代 UMDF 1。 所有新的UMDF驅動程式都應該使用UMDF 2撰寫。 未將新功能新增至 UMDF 1,且較新版本的 Windows 10 上,UMDF 1 的支援有限。 通用 Windows 驅動程式必須使用 UMDF 2。 如需詳細資訊,請參閱使用 UMDF 使用者入門。]

WDF_FILE_INFORMATION_CLASS列舉會識別驅動程式可以取得或設定的文件類型。

Syntax

typedef enum _WDF_FILE_INFORMATION_CLASS {
  WdfFileInformationDirectory = 1,
  WdfFileInformationFullDirectory = 2,
  WdfFileInformationBothDirectory = 3,
  WdfFileInformationBasic = 4,
  WdfFileInformationStandard = 5,
  WdfFileInformationInternal = 6,
  WdfFileInformationEa = 7,
  WdfFileInformationAccess = 8,
  WdfFileInformationName = 9,
  WdfFileInformationRename = 10,
  WdfFileInformationLink = 11,
  WdfFileInformationNames = 12,
  WdfFileInformationDisposition = 13,
  WdfFileInformationPosition = 14,
  WdfFileInformationFullEa = 15,
  WdfFileInformationMode = 16,
  WdfFileInformationAlignment = 17,
  WdfFileInformationAll = 18,
  WdfFileInformationAllocation = 19,
  WdfFileInformationEndOfFile = 20,
  WdfFileInformationAlternateName = 21,
  WdfFileInformationStream = 22,
  WdfFileInformationPipe = 23,
  WdfFileInformationPipeLocal = 24,
  WdfFileInformationPipeRemote = 25,
  WdfFileInformationMailslotQuery = 26,
  WdfFileInformationMailslotSet = 27,
  WdfFileInformationCompression = 28,
  WdfFileInformationObjectId = 29,
  WdfFileInformationCompletion = 30,
  WdfFileInformationMoveCluster = 31,
  WdfFileInformationQuota = 32,
  WdfFileInformationReparsePoint = 33,
  WdfFileInformationNetworkOpen = 34,
  WdfFileInformationAttributeTag = 35,
  WdfFileInformationTracking = 36,
  WdfFileInformationIdBothDirectory = 37,
  WdfFileInformationIdFullDirectory = 38,
  WdfFileInformationValidDataLength = 39,
  WdfFileInformationShortName = 40,
  WdfFileInformationIoCompletionNotification = 41,
  WdfFileInformationIoStatusBlockRange = 42,
  WdfFileInformationIoPriorityHint = 43,
  WdfFileInformationSfioReserve = 44,
  WdfFileInformationSfioVolume = 45,
  WdfFileInformationHardLink = 46,
  WdfFileInformationProcessIdsUsingFile = 47,
  WdfFileInformationNormalizedName = 48,
  WdfFileInformationNetworkPhysicalName = 49,
  WdfFileInformationIdGlobalTxDirectory = 50,
  WdfFileInformationIsRemoteDevice = 51,
  WdfFileInformationAttributeCache = 52,
  WdfFileInformationMaximum = 
} WDF_FILE_INFORMATION_CLASS, *PWDF_FILE_INFORMATION_CLASS;

常數

 
WdfFileInformationDirectory
值: 1
WdfFileInformationFullDirectory
值: 2
WdfFileInformationBothDirectory
值: 3
WdfFileInformationBasic
值: 4
WdfFileInformationStandard
值: 5
WdfFileInformationInternal
值: 6
WdfFileInformationEa
值: 7
WdfFileInformationAccess
值: 8
WdfFileInformationName
值: 9
WdfFileInformationRename
值: 10
WdfFileInformationLink
值: 11
WdfFileInformationNames
值: 12
WdfFileInformationDisposition
值: 13
WdfFileInformationPosition
值: 14
WdfFileInformationFullEa
值: 15
WdfFileInformationMode
值: 16
WdfFileInformationAlignment
值: 17
WdfFileInformationAll
值: 18
WdfFileInformationAllocation
值: 19
WdfFileInformationEndOfFile
值: 20
WdfFileInformationAlternateName
值: 21
WdfFileInformationStream
值: 22
WdfFileInformationPipe
值: 23
WdfFileInformationPipeLocal
值: 24
WdfFileInformationPipeRemote
值: 25
WdfFileInformationMailslotQuery
值: 26
WdfFileInformationMailslotSet
值: 27
WdfFileInformationCompression
值: 28
WdfFileInformationObjectId
值: 29
WdfFileInformationCompletion
值: 30
WdfFileInformationMoveCluster
值: 31
WdfFileInformationQuota
值: 32
WdfFileInformationReparsePoint
值: 33
WdfFileInformationNetworkOpen
值: 34
WdfFileInformationAttributeTag
值: 35
WdfFileInformationTracking
值: 36
WdfFileInformationIdBothDirectory
值: 37
WdfFileInformationIdFullDirectory
值: 38
WdfFileInformationValidDataLength
值: 39
WdfFileInformationShortName
值: 40
WdfFileInformationIoCompletionNotification
值: 41
WdfFileInformationIoStatusBlockRange
值: 42
WdfFileInformationIoPriorityHint
值: 43
WdfFileInformationSfioReserve
值: 44
WdfFileInformationSfioVolume
值: 45
WdfFileInformationHardLink
值: 46
WdfFileInformationProcessIdsUsingFile
值: 47
WdfFileInformationNormalizedName
值: 48
WdfFileInformationNetworkPhysicalName
值: 49
WdfFileInformationIdGlobalTxDirectory
值: 50
WdfFileInformationIsRemoteDevice
值: 51
WdfFileInformationAttributeCache
值: 52
WdfFileInformationMaximum

備註

WDF_FILE_INFORMATION_CLASS列舉是做為 IWDFIoRequest2::GetQueryInformationParameters 的輸入值,以及作為 IWDFIoRequest2::GetSetInformationParameters 的輸出值。

對於 WDF_FILE_INFORMATION_CLASS 列舉所定義的大部分值,wdm.h 或 ntifs.h 頭檔會定義驅動程式在取得或設定檔案資訊時可以使用的FILE_XXXX_INFORMATION命名結構。

如需列舉值和相關聯結構的詳細資訊,請參閱 ZwQueryInformationFileZwSetInformationFileFileInformationClass 參數描述。

規格需求

需求
最低UMDF版本 1.9
標頭 wdffileobject.h (包含 Wudfddi.h)

另請參閱

IWDFIoRequest2::GetQueryInformationParameters

IWDFIoRequest2::GetSetInformationParameters