Condividi tramite


struttura FILE_FS_LABEL_INFORMATION (ntddk.h)

La struttura FILE_FS_LABEL_INFORMATION viene utilizzata per impostare l'etichetta per un volume del file system.

Sintassi

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

Membri

VolumeLabelLength

Lunghezza, espressa in byte, del nome del volume.

VolumeLabel[1]

Nome del volume.

Osservazioni

Queste informazioni possono essere impostate in uno dei modi seguenti:

  • Chiamare FltSetVolumeInformation o ZwSetVolumeInformationFile, passando FileFsLabelInformation come valore di FileInformationClass e passando un buffer allocato FILE_FS_LABEL_INFORMATION strutturato dal chiamante come valore di FileInformation.
  • Creare un IRP con codice funzione principale IRP_MJ_SET_VOLUME_INFORMATION.
FILE_WRITE_DATA'accesso al volume è necessario per impostare queste informazioni.

Le dimensioni del buffer passate nel parametro FileInformation a FltSetVolumeInformation o ZwSetVolumeInformationFile devono essere almeno sizeof (FILE_FS_LABEL_INFORMATION).

Questa struttura deve essere allineata su un limite LONG (4 byte).

Fabbisogno

Requisito Valore
intestazione ntddk.h (include Ntddk.h, Ntifs.h, Fltkernel.h)

Vedere anche

FltSetVolumeInformation

IRP_MJ_SET_VOLUME_INFORMATION

ZwSetVolumeInformationFile