FltGetFileSystemType function (fltkernel.h)

The FltGetFileSystemType function takes a volume or instance object and provides the file system type of the volume.

Syntax

NTSTATUS FLTAPI FltGetFileSystemType(
  [in]  PVOID                FltObject,
  [out] PFLT_FILESYSTEM_TYPE FileSystemType
);

Parameters

[in] FltObject

A pointer to a filter object. This can be a FLT_INSTANCE or FLT_VOLUME object.

[out] FileSystemType

A pointer to a user allocated FLT_FILESYSTEM_TYPE object that receives the file system type for FltObject.

Return value

FltGetFileSystemType returns STATUS_SUCCESS or an appropriate NTSTATUS value such as the following:

Return code Description
STATUS_INVALID_PARAMETER
The FltObject object was not a FLT_INSTANCE or FLT_VOLUME object.

Remarks

If an instance is passed as the FltObject, FltGetFileSystemType provides the file system type for the volume referred to by the instance object.

If STATUS_INVALID_PARAMETER is returned, the FileSystemType parameter is set to FLT_FSTYPE_UNKNOWN.

Requirements

Requirement Value
Minimum supported client Available in starting with Windows Vista.
Target Platform Universal
Header fltkernel.h (include Fltkernel.h)
Library FltMgr.lib
DLL FltMgr.sys
IRQL <= APC_LEVEL

See also

FltGetVolumeFromFileObject

FltGetVolumeFromInstance

FltGetVolumeFromName

FltGetVolumeGuidName

FltGetVolumeInformation

FltGetVolumeInstanceFromName

FltGetVolumeName

FltGetVolumeProperties

FltIsVolumeWritable