FILE_ALLOCATION_INFO structure
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
|
Minimum supported client | Windows Vista [desktop apps only] |
|---|---|
|
Minimum supported server | Windows Server 2008 [desktop apps only] |
|
Redistributable | Windows SDK on Windows Server 2003 and Windows XP. |
|
Header |
|
See also
Send comments about this topic to Microsoft
Build date: 4/16/2013