FILE_FS_LABEL_INFORMATION - NtDoc

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

typedef struct _FILE_FS_LABEL_INFORMATION
{
    ULONG VolumeLabelLength;
    _Field_size_bytes_(VolumeLabelLength) WCHAR VolumeLabel[1];
} FILE_FS_LABEL_INFORMATION, *PFILE_FS_LABEL_INFORMATION;

#endif

View code on GitHub
// ntddk.h

typedef struct _FILE_FS_LABEL_INFORMATION {
  ULONG VolumeLabelLength;
  WCHAR VolumeLabel[1];
} FILE_FS_LABEL_INFORMATION, *PFILE_FS_LABEL_INFORMATION;
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (ns-ntddk-_file_fs_label_information)

_FILE_FS_LABEL_INFORMATION structure

Description

The FILE_FS_LABEL_INFORMATION structure is used to set the label for a file system volume.

Members

VolumeLabelLength

Length, in bytes, of the name for the volume.

VolumeLabel

Name for the volume.

Remarks

This information can be set in either of the following ways:

FILE_WRITE_DATA access to the volume is required to set this information.

The size of the buffer passed in the FileInformation parameter to FltSetVolumeInformation or ZwSetVolumeInformationFile must be at least sizeof (FILE_FS_LABEL_INFORMATION).

This structure must be aligned on a LONG (4-byte) boundary.

See also

FltSetVolumeInformation

IRP_MJ_SET_VOLUME_INFORMATION

ZwSetVolumeInformationFile


NTinternals.net (undocumented.ntinternals.net)

This structure is documented in Windows Driver Kit.


Structure is an input buffer for NtSetVolumeInformationFile call with information class FileFsLabelInformation.

VolumeLabelLength

Length of VolumeLabel array, in bytes.

VolumeLabel[1]

Label for specified volume.

Documented by

See also