Using Win32 functions in Visual FoxPro Image Gallery
Data Decompression Library
..msdn
RtlCompressBuffer
RtlDecompressBuffer
RtlGetCompressionWorkSpaceSize
Code examples:
Compressing and decompressing files with Windows API Runtime Library routines
RtlDecompressBuffer
..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
Declaration:
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
Parameters:
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  
FreeTranslation.com 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: 11
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 (54.227.171.163)
10.8 min.Function: 'IsZoomed'
3 day(s)Example: 'GDI+: sending image of FoxPro form to printer'
 Function: 'NetWkstaUserEnum'
Function group: 'Network Management'
 Function: 'PlaySound'
Function group: 'Windows Multimedia'
 Function: 'RegEnumKey'
Function group: 'Registry'
 Function: 'SetMonitorContrast'
 Example: 'Opening access to the Microsoft Internet functions for the application'
 Example: 'How to assemble an array of strings and pass it to external function'
Google
Advertise here!