WDF_FILE_INFORMATION_CLASS enumeration (wdffileobject.h)
[Warning: UMDF 2 is the latest version of UMDF and supersedes UMDF 1. All new UMDF drivers should be written using UMDF 2. No new features are being added to UMDF 1 and there is limited support for UMDF 1 on newer versions of Windows 10. Universal Windows drivers must use UMDF 2. For more info, see Getting Started with UMDF.]
The WDF_FILE_INFORMATION_CLASS enumeration identifies the types of file information that a driver can obtain or set.
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;
Constants
WdfFileInformationDirectory Value: 1 |
WdfFileInformationFullDirectory Value: 2 |
WdfFileInformationBothDirectory Value: 3 |
WdfFileInformationBasic Value: 4 |
WdfFileInformationStandard Value: 5 |
WdfFileInformationInternal Value: 6 |
WdfFileInformationEa Value: 7 |
WdfFileInformationAccess Value: 8 |
WdfFileInformationName Value: 9 |
WdfFileInformationRename Value: 10 |
WdfFileInformationLink Value: 11 |
WdfFileInformationNames Value: 12 |
WdfFileInformationDisposition Value: 13 |
WdfFileInformationPosition Value: 14 |
WdfFileInformationFullEa Value: 15 |
WdfFileInformationMode Value: 16 |
WdfFileInformationAlignment Value: 17 |
WdfFileInformationAll Value: 18 |
WdfFileInformationAllocation Value: 19 |
WdfFileInformationEndOfFile Value: 20 |
WdfFileInformationAlternateName Value: 21 |
WdfFileInformationStream Value: 22 |
WdfFileInformationPipe Value: 23 |
WdfFileInformationPipeLocal Value: 24 |
WdfFileInformationPipeRemote Value: 25 |
WdfFileInformationMailslotQuery Value: 26 |
WdfFileInformationMailslotSet Value: 27 |
WdfFileInformationCompression Value: 28 |
WdfFileInformationObjectId Value: 29 |
WdfFileInformationCompletion Value: 30 |
WdfFileInformationMoveCluster Value: 31 |
WdfFileInformationQuota Value: 32 |
WdfFileInformationReparsePoint Value: 33 |
WdfFileInformationNetworkOpen Value: 34 |
WdfFileInformationAttributeTag Value: 35 |
WdfFileInformationTracking Value: 36 |
WdfFileInformationIdBothDirectory Value: 37 |
WdfFileInformationIdFullDirectory Value: 38 |
WdfFileInformationValidDataLength Value: 39 |
WdfFileInformationShortName Value: 40 |
WdfFileInformationIoCompletionNotification Value: 41 |
WdfFileInformationIoStatusBlockRange Value: 42 |
WdfFileInformationIoPriorityHint Value: 43 |
WdfFileInformationSfioReserve Value: 44 |
WdfFileInformationSfioVolume Value: 45 |
WdfFileInformationHardLink Value: 46 |
WdfFileInformationProcessIdsUsingFile Value: 47 |
WdfFileInformationNormalizedName Value: 48 |
WdfFileInformationNetworkPhysicalName Value: 49 |
WdfFileInformationIdGlobalTxDirectory Value: 50 |
WdfFileInformationIsRemoteDevice Value: 51 |
WdfFileInformationAttributeCache Value: 52 |
WdfFileInformationMaximum |
Remarks
The WDF_FILE_INFORMATION_CLASS enumeration is used as an input value to IWDFIoRequest2::GetQueryInformationParameters and as an output value from IWDFIoRequest2::GetSetInformationParameters.
For most values that the WDF_FILE_INFORMATION_CLASS enumeration defines, the wdm.h or ntifs.h header file defines a FILE_XXXX_INFORMATION-named structure that the driver can use when obtaining or setting the file information.
For more information about the enumeration value and associated structures, see the description of the FileInformationClass parameter of ZwQueryInformationFile and ZwSetInformationFile.
Requirements
Requirement | Value |
---|---|
Minimum UMDF version | 1.9 |
Header | wdffileobject.h (include Wudfddi.h) |