 |
RtlGetCompressionWorkSpaceSize ..msdn Add comment W32 Constants Translate this page |
 |
 |
|
This function is used to determine the correct size of the WorkSpace buffer for the RtlCompressBuffer and RtlDecompressFragment functions. |
 |
 |
| Code examples: |
 |
|
|
 |
 |
| Declaration: |
 |
 |
NTSTATUS RtlGetCompressionWorkSpaceSize(
__in USHORT CompressionFormatAndEngine,
__out PULONG CompressBufferWorkSpaceSize,
__out PULONG CompressFragmentWorkSpaceSize
);
|
 |
 |
 |
| FoxPro declaration: |
 |
 |
DECLARE INTEGER RtlGetCompressionWorkSpaceSize IN ntdll;
SHORT CompressionFormatAndEngine,;
LONG @CompressBufferWorkSpaceSize,;
LONG @CompressFragmentWorkSpaceSize
|
 |
 |
 |
| Parameters: |
 |
CompressionFormatAndEngine [in]
Bitmask specifying the compression format and engine type.
CompressBufferWorkSpaceSize [out]
A pointer to a caller-allocated buffer receiving the size, in bytes, required to compress a buffer.
CompressFragmentWorkSpaceSize [out]
A pointer to a caller-allocated buffer receiving the size, in bytes, required to decompress a compressed buffer to a fragment. |
 |
 |
| Return value: |
 |
| Returns STATUS_SUCCESS (0) or an appropriate error code. |
 |
 |
| Usage: |
 |
#DEFINE COMPRESSION_FORMAT_LZNT1 2
#DEFINE COMPRESSION_ENGINE_STANDARD 0
#DEFINE COMPRESSION_ENGINE_MAXIMUM 0x0100
nFlag = BITOR( COMPRESSION_FORMAT_LZNT1,;
COMPRESSION_ENGINE_STANDARD )
STORE 0 TO nWorkSpaceCompress,;
nWorkSpaceDecompress
RETURN RtlGetCompressionWorkSpaceSize( m.nFlag,;
@nWorkSpaceCompress,;
@nWorkSpaceDecompress ) = STATUS_SUCCESS
|
 |
 |
| Translate this page: |
 |
|
 |
 |
| • |
 |
| Created: | 2010-08-12 18:29:44 | | Modified: | 2010-08-12 18:36:35 | Visited in last 7 days: 18 |