FILE_COMPRESSION_INFO structure (winbase.h)

Receives file compression information. Used for any handles. Use only when calling GetFileInformationByHandleEx.

Syntax

typedef struct _FILE_COMPRESSION_INFO {
  LARGE_INTEGER CompressedFileSize;
  WORD          CompressionFormat;
  UCHAR         CompressionUnitShift;
  UCHAR         ChunkShift;
  UCHAR         ClusterShift;
  UCHAR         Reserved[3];
} FILE_COMPRESSION_INFO, *PFILE_COMPRESSION_INFO;

Members

CompressedFileSize

The file size of the compressed file.

CompressionFormat

The compression format that is used to compress the file.

CompressionUnitShift

The factor that the compression uses.

ChunkShift

The number of chunks that are shifted by compression.

ClusterShift

The number of clusters that are shifted by compression.

Reserved[3]

Reserved.

Requirements

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

See also

FILE_INFO_BY_HANDLE_CLASS

GetFileInformationByHandleEx