NtSetVolumeInformationFile - NtDoc

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

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

#endif

View code on GitHub
#ifndef _NTZWAPI_H

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

#endif

View code on GitHub

This function is documented in Windows Driver Kit.


FileHandle

HANDLE to File Object.

IoStatusBlock

IO result of call.

FileSystemInformation

Buffer containing information to set, depending on FileSystemInformationClass parameter.

Length

Length of FileSystemInformation buffer, in bytes.

FileSystemInformationClass

Class of information to set. See FS_INFORMATION_CLASS for valid information classes.


NtSetVolumeInformationFile sets information to volume (device) containing file specified in FileHandle parameter.

Documented by

See also