FILE_512_BYTE_ALIGNMENT If this value is specified, data MUST be aligned on a 512-byte boundary. 0x000001ff This operation returns a status code, as specified in section 2.3. The status code returned directly by the function that processes this file information class MUST be STATUS_SUCCESS or one of the following. Error code Meaning STATUS_INFO_LENGTH_MISMATCH The specified information record length does not match the length that is required for the specified information class. 0xC0000004 FileAllocationInformation This information class is used to set but not to query the allocation size for a file. The file system is passed a 64-bit signed integer containing the file allocation size, in bytes. The file system rounds the requested allocation size up to an integer multiple of the cluster size for nonresident files, or an implementation-defined multiple for resident files.<89><90> All unused allocation (beyond EOF) is freed on the last handle close. A FILE_ALLOCATION_INFORMATION data element, defined as follows, is provided by the client. 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 AllocationSize ... AllocationSize (8 bytes): A 64-bit signed integer that contains the desired allocation to be used by the given file. This operation returns a status code, as specified in section 2.3. The status code returned directly by the function that processes this file information class MUST be STATUS_SUCCESS or one of the following. Error code Meaning STATUS_INVALID_PARAMETER The handle is for a directory and not a file, or the allocation is greater than the maximum file size allowed. 0xC000000D STATUS_ACCESS_DENIED The handle was not opened to write file data or file attributes. 0xC0000022 STATUS_DISK_FULL The disk is full. 0xC000007F STATUS_INFO_LENGTH_MISMATCH The specified information record length does not match the length that is required for the specified information class. 0xC0000004
FILE_512_BYTE_ALIGNMENT 0x000001ff If this value is specified, data MUST be aligned on a 512-byte boundary. This operation returns a status code, as specified in section 2.3. The status code returned directly by the function that processes this file information class MUST be STATUS_SUCCESS or one of the following. Error code Meaning STATUS_INFO_LENGTH_MISMATCH 0xC0000004 The specified information record length does not match the length that is required for the specified information class. FileAllocationInformation This information class is used to set but not to query the allocation size for a file. The file system is passed a 64-bit signed integer containing the file allocation size, in bytes. The file system rounds the requested allocation size up to an integer multiple of the cluster size for nonresident files, or an implementation-defined multiple for resident files.<89><90> All unused allocation (beyond EOF) is freed on the last handle close. A FILE_ALLOCATION_INFORMATION data element, defined as follows, is provided by the client. 0 1 2 3 4 5 6 7 8 9 1 0 1 2 3 4 5 6 7 8 9 2 0 1 2 3 4 5 6 7 8 9 3 0 1 AllocationSize ... AllocationSize (8 bytes): A 64-bit signed integer that contains the desired allocation to be used by the given file. This operation returns a status code, as specified in section 2.3. The status code returned directly by the function that processes this file information class MUST be STATUS_SUCCESS or one of the following. Error code Meaning STATUS_INVALID_PARAMETER 0xC000000D The handle is for a directory and not a file, or the allocation is greater than the maximum file size allowed. STATUS_ACCESS_DENIED 0xC0000022 The handle was not opened to write file data or file attributes. STATUS_DISK_FULL 0xC000007F The disk is full. STATUS_INFO_LENGTH_MISMATCH 0xC0000004 The specified information record length does not match the length that is required for the specified information class.
%5BMS-FSCC%5D-160714.docx