FILE_FS_DRIVER_PATH_INFORMATION - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
#ifndef _NTIOAPI_H

typedef struct _FILE_FS_DRIVER_PATH_INFORMATION
{
    BOOLEAN DriverInPath;
    ULONG DriverNameLength;
    _Field_size_bytes_(DriverNameLength) WCHAR DriverName[1];
} FILE_FS_DRIVER_PATH_INFORMATION, *PFILE_FS_DRIVER_PATH_INFORMATION;

#endif

View code on GitHub
// ntifs.h

typedef struct _FILE_FS_DRIVER_PATH_INFORMATION {
  BOOLEAN DriverInPath;
  ULONG   DriverNameLength;
  WCHAR   DriverName[1];
} FILE_FS_DRIVER_PATH_INFORMATION, *PFILE_FS_DRIVER_PATH_INFORMATION;
View the official Windows Driver Kit DDI reference

NtDoc

This structure is documented in Windows Driver Kit.

Windows Driver Kit DDI reference (ns-ntifs-_file_fs_driver_path_information)

_FILE_FS_DRIVER_PATH_INFORMATION structure

Description

The FILE_FS_DRIVER_PATH_INFORMATION structure is used to query whether a given driver is in the I/O path for a file system volume.

Members

DriverInPath

Receives TRUE if the driver is in the I/O path for the file system volume, FALSE otherwise.

DriverNameLength

Caller-supplied length of the driver name string.

DriverName

Caller-supplied Unicode string containing the name of the driver.

Remarks

To perform this query, call FltQueryVolumeInformation or ZwQueryVolumeInformationFile, passing FileFsDriverPathInformation as the value of FileInformationClass and passing a caller-allocated, FILE_FS_DRIVER_PATH_INFORMATION-structured buffer as the value of FileInformation.

This information is file system-independent. Thus the call to FltQueryVolumeInformation or ZwQueryVolumeInformationFile does not cause an IRP to be sent to the file system.

No specific access rights are required to query this information. Thus this information is available as long as the volume is accessed through an open handle to the volume itself, or to a file or directory on the volume.

The size of the buffer passed in the FileInformation parameter to FltQueryVolumeInformation or ZwQueryVolumeInformationFile must be at least sizeof (FILE_FS_DRIVER_PATH_INFORMATION).

This structure must be aligned on a LONGLONG (8-byte) boundary.

See also

FltQueryVolumeInformation

ZwQueryVolumeInformationFile