FILE_ALLOCATION_INFO structure (winbase.h)

Contains the total number of bytes that should be allocated for a file. This structure is used when calling the SetFileInformationByHandle function.

Syntax

typedef struct _FILE_ALLOCATION_INFO {
  LARGE_INTEGER AllocationSize;
} FILE_ALLOCATION_INFO, *PFILE_ALLOCATION_INFO;

Members

AllocationSize

The new file allocation size, in bytes. This value is typically a multiple of the sector or cluster size for the underlying physical device.

Remarks

The end-of-file (EOF) position for a file must always be less than or equal to the file allocation size. If the allocation size is set to a value that is less than EOF, the EOF position is automatically adjusted to match the file allocation size.

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Header winbase.h (include Windows.h)
Redistributable Windows SDK on Windows Server 2003 and Windows XP.

See also

FILE_INFO_BY_HANDLE_CLASS

SetFileInformationByHandle