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: 101
User Contributed Notes:
There are no notes on this subject.

Copyright 2001-2018 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.6.38), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (
4 sec.Function: 'mixerOpen'
Function group: 'Windows Multimedia'
8 sec.Function: 'Escape'
11 sec.Function: 'waveOutReset'
Function group: 'Windows Multimedia'
14 sec.Function: 'DeleteFileTransacted'
Function group: 'File Management'
17 sec.Function: 'FileTimeToSystemTime'
22 sec.
Function group: 'Keyboard Input'
25 sec.Function: 'PlaySound'
Function group: 'Windows Multimedia'
28 sec.
Function group: 'Dialog Box'
32 sec.
Function group: 'Remote Access Service (RAS)'
35 sec.Function: 'FlushFileBuffers'
Advertise here!