// winioctl.h
typedef struct _FSCTL_GET_INTEGRITY_INFORMATION_BUFFER {
WORD ChecksumAlgorithm;
WORD Reserved;
DWORD Flags;
DWORD ChecksumChunkSizeInBytes;
DWORD ClusterSizeInBytes;
} FSCTL_GET_INTEGRITY_INFORMATION_BUFFER, *PFSCTL_GET_INTEGRITY_INFORMATION_BUFFER;
View the official Win32 API referenceNo description available.
Contains the integrity information for a file or directory. Returned from the FSCTL_GET_INTEGRITY_INFORMATION control code.
ChecksumAlgorithmThe checksum algorithm used.
| Value | Meaning |
|---|---|
| CHECKSUM_TYPE_NONE 0x0000 |
The file or directory is not configured to use integrity. |
| CHECKSUM_TYPE_CRC64 0x0002 |
The file or directory uses a CRC64 checksum to provide integrity. |
| 3–0xffff | Reserved for future use. |
ReservedReserved for future use. Set to 0.
FlagsContains one or more flags.
| Value | Meaning |
|---|---|
| FSCTL_INTEGRITY_FLAG_CHECKSUM_ENFORCEMENT_OFF 0x00000001 |
If set, the checksum enforcement is disabled. |
ChecksumChunkSizeInBytesSize in bytes of the chunks used to calculate checksums.
ClusterSizeInBytesSize in bytes of a cluster for this volume. This value must be a power of 2, must be greater than or equal to the sector size of the underlying hardware and must be a power of 2 multiple of the sector size.
FSCTL_GET_INTEGRITY_INFORMATION
FSCTL_SET_INTEGRITY_INFORMATION_BUFFER