Using Win32 functions in Visual FoxPro Image Gallery
Data Decompression Library
Code examples:
Compressing and decompressing files with Windows API Runtime Library routines
..msdn    Add comment     W32 Constants      Translate this page
Decompresses an entire compressed buffer.
Code examples:
Compressing and decompressing files with Windows API Runtime Library routines
NTSTATUS RtlDecompressBuffer(
  __in   USHORT CompressionFormat,
  __out  PUCHAR UncompressedBuffer,
  __in   ULONG UncompressedBufferSize,
  __in   PUCHAR CompressedBuffer,
  __in   ULONG CompressedBufferSize,
  __out  PULONG FinalUncompressedSize
FoxPro declaration:
DECLARE INTEGER RtlDecompressBuffer IN ntdll;
    SHORT CompressionFormat,;
    INTEGER UncompressedBuffer,;
    LONG UncompressedBufferSize,;
    INTEGER CompressedBuffer,;
    LONG CompressedBufferSize,;
    LONG @FinalUncompressedSize
CompressionFormat [in]
Bitmask specifying the compression format of the compressed buffer. This parameter must be set to COMPRESSION_FORMAT_LZNT1.

UncompressedBuffer [out]
Pointer to a caller-allocated buffer (allocated from paged or non-paged pool) receiving the decompressed data from CompressedBuffer. This parameter is required and cannot be NULL.

UncompressedBufferSize [in]
The size, in bytes, of the UncompressedBuffer buffer.

CompressedBuffer [in]
A pointer to the buffer containing the data to decompress. This parameter is required and cannot be NULL.

CompressedBufferSize [in]
The size, in bytes, of the CompressedBuffer buffer.

FinalUncompressedSize [out]
A pointer to a caller-allocated variable which receives the size, in bytes, of the decompressed data stored in UncompressedBuffer.
Return value:
Returns STATUS_SUCCESS (0) or an appropriate error code.
My comment:
See also: RtlCompressBuffer, RtlDecompressFragment, RtlGetCompressionWorkSpaceSize
Word Index links for the RtlDecompressBuffer :
Translate this page:
  Spanish    Portuguese    German    French    Italian offers instant, free translations of text or web pages.
Created: 2010-08-12 18:26:48
Modified: 2010-08-12 18:29:12
Visited in last 7 days: 16
User Contributed Notes:
There are no notes on this subject.

Copyright 2001-2014 News2News, Inc. Before reproducing or distributing any data from this site please ask for an approval from its owner. Unless otherwise specified, this page is for your personal and non-commercial use. The information on this page is presented AS IS, meaning that you may use it at your own risk. Microsoft Visual FoxPro and Windows are trade marks of Microsoft Corp. All other trademarks are the property of their respective owners. 

Privacy policy
Credits: PHP (4.4.9), an HTML-embedded scripting language, MySQL (5.1.68), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (
3.18 min.Function: 'RtlCompressBuffer'
2 day(s)Example: 'How to change display settings: screen resolution, screen refresh rate'
 Function: 'DeleteDC'
 Example: 'How to download this reference`s archive through WinInet functions using InternetOpenUrl'
 Example: 'Printing text on the main VFP window'
 Example: 'How to make application automatically close all documents it opened'
Function group: 'Shell Lightweight Utility APIs -- misc. functions'
5 day(s)Example: 'Using WM_COPYDATA for interprocess communication (VFP9)'
Language: 'C#'
Function group: 'URL Monikers'
Function group: 'National Language Support'
Advertise here!