Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

QueryDecompressorInformation function

Use this function to query information about a particular compression algorithm.

Syntax


BOOL QueryDecompressorInformation(
  _In_  DECOMPRESSOR_HANDLE        DecompressorHandle,
  _In_  COMPRESS_INFORMATION_CLASS CompressInformationClass,
  _Out_ PVOID                      CompressInformation,
  _In_  SIZE_T                     CompressInformationSize
);

Parameters

DecompressorHandle [in]

Handle to the decompressor being queried for information.

CompressInformationClass [in]

A value of the COMPRESS_INFORMATION_CLASS enumeration that identifies the type of information.

CompressInformation [out]

Information for the compression algorithm written as bytes. The maximum size in bytes of this information is given by CompressInformationSize.

CompressInformationSize [in]

Maximum size in bytes of the information.

Return value

Returns TRUE to indicate success and FALSE otherwise. Call GetLastError to determine cause of failure.

Remarks

If the compression algorithm fails for some internal reason, the error from GetLastError can be ERROR_FUNCTION_FAILED. If the system cannot locate the compression algorithm handle, the error can be ERROR_INVALID_HANDLE. If the compression algorithm does not allow the information class, the error can be ERROR_UNSUPPORTED_TYPE. If the buffer is to small to hold the value, the error can be ERROR_INSUFFICIENT_BUFFER.

Requirements

Header

Compressapi.h on Windows 8 and Windows Server 2012

Library

Cabinet.lib

DLL

Cabinet.dll

See also

Compression API Functions

 

 

Community Additions

Show:
© 2017 Microsoft