NtQueryVolumeInformationFile - NtDoc

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

NTSYSCALLAPI
NTSTATUS
NTAPI
NtQueryVolumeInformationFile(
    _In_ HANDLE FileHandle,
    _Out_ PIO_STATUS_BLOCK IoStatusBlock,
    _Out_writes_bytes_(Length) PVOID FsInformation,
    _In_ ULONG Length,
    _In_ FSINFOCLASS FsInformationClass
    );

#endif

View code on GitHub
#ifndef _NTZWAPI_H

NTSYSCALLAPI
NTSTATUS
NTAPI
ZwQueryVolumeInformationFile(
    _In_ HANDLE FileHandle,
    _Out_ PIO_STATUS_BLOCK IoStatusBlock,
    _Out_writes_bytes_(Length) PVOID FsInformation,
    _In_ ULONG Length,
    _In_ FSINFOCLASS FsInformationClass
    );

#endif

View code on GitHub

This function is documented in Windows Driver Kit here, here, and here.


FileHandle

HANDLE to File Object.

IoStatusBlock

IO result of call.

FileSystemInformation

Caller's allocated buffer for output data.

Length

Length of FileSystemInformation buffer, in bytes.

FileSystemInformationClass

Information class described in FS_INFORMATION_CLASS topic.


NtQueryVolumeInformationFile gives information about volume (device) containing file specified as FileHandle parameter.

Documented by

See also