#ifndef _NTIOAPI_H
typedef struct _FILE_STORAGE_RESERVE_ID_INFORMATION
{
STORAGE_RESERVE_ID StorageReserveId;
} FILE_STORAGE_RESERVE_ID_INFORMATION, *PFILE_STORAGE_RESERVE_ID_INFORMATION;
View code on GitHub
// ntifs.h
typedef struct _FILE_STORAGE_RESERVE_ID_INFORMATION {
STORAGE_RESERVE_ID StorageReserveId;
} FILE_STORAGE_RESERVE_ID_INFORMATION, *PFILE_STORAGE_RESERVE_ID_INFORMATION;
View the official Windows Driver Kit DDI reference
This structure is documented in Windows Driver Kit.
The FILE_STORAGE_RESERVE_ID_INFORMATION structure is used by NtQueryInformationFile and NtSetInformationFile to query and set the storage reserve ID on a file or directory.
StorageReserveId
A STORAGE_RESERVE_ID value that indicates the storage reserve ID for the file or directory. The file system uses this ID to change the disk space used by the file or directory as follows:
Setting a storage reserve ID on a directory causes all files subsequently created inside that directory to inherit the storage reserve ID.
Attempting to set a storage reserve ID fails with STATUS_STORAGE_RESERVE_ID_INVALID if the value is greater than the maximum value supported by the file system.
Attempting to set a storage reserve ID fails with STATUS_STORAGE_RESERVE_DOES_NOT_EXIST if the corresponding storage reserve area has not been defined on the volume.