FsRtlGetSupportedFeatures function

The FsRtlGetSupportedFeatures routine returns the supported features of a volume attached to the specified device object.

Syntax

NTSTATUS FsRtlGetSupportedFeatures(
  PDEVICE_OBJECT DeviceObject,
  PULONG         SupportedFeatures
);

Parameters

DeviceObject

The target device object attached to a volume.

SupportedFeatures

A pointer to a caller supplied ULONG value. On return, this value contains the supported feature flags for the attached volume.

The supported features are a bitwise OR combination of the following flags.

Value Meaning
SUPPORTED_FS_FEATURES_OFFLOAD_READ
0x00000001
The volume supports offloaded read operations.
SUPPORTED_FS_FEATURES_OFFLOAD_WRITE
0x00000002
The volume supports offloaded write operations.
SUPPORTED_FS_FEATURES_QUERY_OPEN
0x00000004
The volume supports query open operations.

Return Value

FsRtlGetSupportedFeatures returns STATUS_SUCCESS if the supported features for the volume attached to DeviceObject are returned successfully. Otherwise, one of the following NTSTATUS values is returned.

Return code Description
STATUS_FLT_VOLUME_NOT_FOUND
No volume is found for DeviceObject.
STATUS_FLT_INTERNAL_ERROR
The device object specified by DeviceObject is not in a file system device stack.

Requirements

   
Minimum supported client Available in starting with Windows 8.
Target Platform Universal
Header ntifs.h (include Ntifs.h)
Library NtosKrnl.lib
DLL NtosKrnl.exe
IRQL <= APC_LEVEL